This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Validating XML

No replies
Jorge Ortiz
Joined: 2008-12-16,
User offline. Last seen 29 weeks 3 days ago.
I looked briefly and found no obvious hooks.

--j
On Jan 13, 2009, at 2:13 PM, "Thomas Sant Ana" <mailleux@gmail.com> wrote:



On Tue, Jan 13, 2009 at 4:50 PM, Jorge Ortiz < (jorge [dot] ortiz [at] gmail [dot] com> wrote:
I believe if your XML has a DOCTYPE then Scala will automatically validate against the DTD.

(Or, at least, I've had issues with Scala not finding the DTD where it expected it and blowing up in my face.)

With validation off it will process DTD information, but will ignore errors. I tested on scala 2.7.2.final. I wonder if the underlying SAX implementation can be controlled globally.

Thomas
.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland