I am using a SAX parser (javax.xml.pars ers.SAXParser) to parse a
document. I have an element that contains an any node...
<xs:element name="extension " minOccurs="0" maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbo unded"
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
programmaticall y, without requiring the XML document author to put in
the xmlns and SchemaLocation?
Here is a link to the source for my parser:
Thanks!
document. I have an element that contains an any node...
<xs:element name="extension " minOccurs="0" maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbo unded"
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
programmaticall y, without requiring the XML document author to put in
the xmlns and SchemaLocation?
Here is a link to the source for my parser:
Thanks!