OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] [Xerces-J] DOM and Schema information

[ Lists Home | Date Index | Thread Index ]

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS