[jdom-interest] re: xml schema support
Joshua and Louise Fox
jtfox at usa.net
Sun Apr 29 08:36:11 PDT 2001
How to we make Xerces-DOM (on top of which we're running JDOM), use
schema-validation?
What we want to do is
parser.setFeature(
"http://apache.org/xml/features/validation/schema",
true)
to the underlying Xerces parser, but we can't figure out how to access the
underlying Xerces parser from JDOM.
Thanks,
Joshua Fox
Software Architect
Unicorn Solutions
philip.nelson at omniresources.com wrote:
> A schema is parsed, and the document is parsed and
> compared against that schema (depending on parser settings) long
> before a
> JDOM document is ever built. So, JDOM can use the underlying parser
> and report schema violations that way. The specific schema
> version you need and
> features depend on which parser you use so as long
> as JDOM has an adaptor
> for a parser that supports your schema type, JDOM is usable
> with your schema.
> In memory validation against that schema within JDOM is not
> supported and
> while the debate has not totally ended, I doubt it
> will be implemented
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
More information about the jdom-interest
mailing list