"Paul Tomsic" <[EMAIL PROTECTED]> wrote on 10/30/2006 02:46:27 PM:
> when setting the > "http://apache.org/xml/properties/schema/external-schemaLocation" > property, on the SAXParser, is it possible to have the value of this > take something other than the file uri? The only type allowed by this property [1] is java.lang.String. > for instance a dom document ? It's possible to supply a DOM node as a schema source if you're using the JAXP 1.3 Validation API (see java.xml.validation.SchemaFactory) or if you register an XNI XMLEntityResolver [2] with the parser and return a DOMInputSource [3]. > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] [1] http://xerces.apache.org/xerces2-j/properties.html#schema.external-schemaLocation [2] http://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/parser/XMLEntityResolver.html [3] http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/util/DOMInputSource.html 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]