Re: [Xerces-J] DOM and Schema information
Charles Francoise wrote: > I'd like to obtain some schema information on the nodes though, in > particular, I'd like to know what type they are declared to be in the > schema. I had this problem too (though working in Perl), as documented a month or so ago on this list. All of the schema-aware tools I could find perform validation, but don't really give good access to schema information from the document nodes. What I ended up doing is parsing the schema documents into DOM objects, harvesting the type declarations, their hierarchy, and their context, and then using that as I went through the document. I'm only using a subset of schema, so this wasn't too hard, but a similar approach might work for you. ~Chris -- Christopher R. Maden, Principal Consultant, crism consulting XML-SGML-HTML-DTDs-schemas-XSL-DSSSL-conversion-training-ebooks-B2B <URL: http://crism.maden.org/consulting/ > PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format