Paul Tomsic <[EMAIL PROTECTED]> wrote on 08/08/2006 06:37:39 PM:

> i'm trying to set up xinclude support while validating
> a XML doc against it's XSD.
> 
> neither the javax.xml.validation.Validator nor the
> SchemaFactory (in jdk 1.4) support the
> "http://apache.org/xml/features/xinclude";
> 
> i'm validating much like the SourceValidator example
> that ships w/ xerces.  i see that the xml-api.jar that
> ships w/ 2.8.0 has the method to "setXIncludeAware()"
> but since the xml-api.jar isn't above the jdk in my
> classpath, then i don't have access to those methods.
> 
> is there an alternate way to provide support for
> xinclude while validating an xml against an xsd?

You could supply the Validator with a SAXSource containing an XMLReader 
which has the XInclude feature [1] enabled.

> thanks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

[1] http://xerces.apache.org/xerces2-j/features.html#xinclude

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to