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

Validating XML

1 reply
Tim Perrett
Joined: 2008-12-25,
User offline. Last seen 42 years 45 weeks ago.

Guys,

Just a quick question - inside the scala xml support is there anyway of
validating an xml file against a DTD or XSD? If not, does anyone know of a
parser / validate that works nicely with scala?

Cheers

Tim

Jorge Ortiz
Joined: 2008-12-16,
User offline. Last seen 29 weeks 3 days ago.
Re: Validating XML
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.)

--j

On Tue, Jan 13, 2009 at 1:54 AM, Tim Perrett <hello@timperrett.com> wrote:
Guys,

Just a quick question - inside the scala xml support is there anyway of
validating an xml file against a DTD or XSD? If not, does anyone know of a
parser / validate that works nicely with scala?

Cheers

Tim




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