I am using a SAX parser (javax.xml.parsers.SAXParser) to parse a
document. I have an element that contains an any node...
<xs:element name="extension" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded"
processContents="lax"/>
</xs:sequence>
<xs:attribute name="uid" type="xs:string"/>
</xs:complexType>
</xs:element>
Using this element's "uid" attribute I can lookup an XSD that I need to
apply to all elements within this element. Is there a way I can do this
programmatically, without requiring the XML document author to put in
the xmlns and SchemaLocation?
Here is a link to the source for my parser:
http://tinyurl.com/5gfsf
Thanks!