[jdom-interest] Parsing an XML Schema

Paul Libbrecht paul at activemath.org
Sun Jul 30 05:37:57 PDT 2006


?? A DTD, although it is part of an XML file, is not, in itself, an XML 
file, i.e. it's information-set, according to XML, is empty... or do I 
mistake ??
Normal SAX parsers (Xerces, AElfred, Crimson...) parse the DTD when 
parsing the xml file that references it but do not deliver any
 info from it. Xerces has some interfaces within XNI (but this is mostly 
xml-schema oriented).

I think what you need is DTDparser... does a good job!

paul

enis enis wrote:
> Hi everyone,
>
> I have a DTD to parse as an XML file (tree structure), so I converted 
> it to xml schema to parse it : I need to get the elements (and the 
> attributes) starting by the root and then the children (from left to 
> right)... So  I need an example of a java class that does that with JDOM.
>
> thanks.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://www.jdom.org/pipermail/jdom-interest/attachments/20060730/145249a9/smime.bin


More information about the jdom-interest mailing list