Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Applying an XSD to a fragment of the document.

From: "n4te" <nathan.sweet@-----.--->
To: NULL
Date: 4/1/2005 8:56:00 PM
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!



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent