xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom
- From: Tatu Saloranta <cowtowncoder AT yahoo.com>
- To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>, Verachten Bruno <Bruno.Verachten AT atosorigin.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom
- Date: Wed, 15 Mar 2006 22:37:51 -0800 (PST)
--- Wolfgang Hoschek <wolfgang.hoschek AT mac.com> wrote:
> On Mar 15, 2006, at 2:00 AM, Verachten Bruno wrote:
...
> If a STAX impl becomes available that can validate
> against W3C
> schema, such STAX impl could be plugged in instead
> by feeding its
> XMLInputFactory into the following nux-1.5 STAX
> method:>
...
> public static Builder createBuilder(XMLInputFactory
> inputFactory,
> NodeFactory factory)
>
> I think Tatu is getting close to releasing a
> woodstox STAX impl using
> generic Sun-MSV validation, so with some luck that
> might cover not
> only RelaxNG but also W3C XML Schema. Tatu?
The current development version from svn repository
handles
RelaxNG, as you pointed out; and since it's based on
Sun's MSV,
it may be easy to add W3C Schema validation as well.
The current RNG will be released in 2.9.2 (to be
released in a week
or so); and hopefully fully functional W3C Schema
support makes it
in 3.0 that should follow before end of April or so.
If you are interested, I can also explain the way to
configure the
StAX XMLInputFactory for validation.
The trickiest part is going to be the auto-detection
of suggested
schema locations, as well as passing the list of
Schema pieces...
Unfortunately it doesn't quite follow the input source
methods that
other xml processing can use (a single file, reader,
input stream,
URL etc; good for xml parsing, validation using other
schemas),
so I need to think of appropriate extension(s) for the
validation factory methods
I am also interested in knowing relative popularity of
Relax NG vs.
W3C Schema: while consensus seems to be that RNG is a
better Validation
Schema system (w3c schema is more geared towards data
typing, ie. it is
a type system more than validation system), w3C Schema
has more tool and
vendor support.
...
> Thanks to Tatu's incredible and tireless efforts
> around the STAX spec
> and woodstox impl, it will soon be a conformant,
> reliable, complete
> and efficient alternative to SAX.
Thanks! Let's hope this will be the case -- Wolfgang's
50k+ xml test
document collection, as well as Elliotte's SAXTest
wrapping (which
Woodstox passes with 98.5% rate at this point),
Woodstox is indeed
reasonably xml conformant (and other implementations
can also benefit
from these test tools and frameworks).
Plus, Nux+Xom can nicely hide the details of hooking
up the appropriate
SAX/StAX implementation, such that the whole machinery
works, well, like
it should ("It Just Works!").
What's not to like? :-)
-+ Tatu +-
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
[XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Verachten Bruno, 03/15/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Wolfgang Hoschek, 03/15/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Tatu Saloranta, 03/16/2006
- Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom, Michael Kay, 03/16/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Tatu Saloranta, 03/16/2006
- <Possible follow-up(s)>
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Verachten Bruno, 03/16/2006
- Re: [XOM-interest] (OT) [Nux] [StaX] Validating an XML document with Xom, Tatu Saloranta, 03/16/2006
- Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom, Tatu Saloranta, 03/16/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Wolfgang Hoschek, 03/15/2006
Archive powered by MHonArc 2.6.24.