--- David Olivier <[EMAIL PROTECTED]> wrote:

...
> I'll give a bit of background. I am a developer, in
> Java, and with
> some difficulty figured how to consume XML files and
> validate them.
> But I have only figured that out for XML Schema
> (.xsd) validation; I
> don't know how to do it directly with .rng files.

Many packages support rng validation (I think even
Xerces has an extension that uses MSV?)
Sun's Multi-Schema Validator, MSV (
https://msv.dev.java.net/), has a stand-alone
validation tool, and as a stand-alone library it is
used by some parsers, at least Woodstox
(http://woodstox.codehaus.org). Validating against RNG
is as easy as against w3c schema, when using stax
parser (stax api is part of java 6), see:

http://www.cowtowncoder.com/blog/archives/2007/11/entry_53.html

So if you ever want to validate natively against relax
ng schema, it's not very hard to do either.

-+ Tatu +-



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to