I'm quite new to the xerces and java environment and would really appreciate any help i can get!
I'm developing an application to analyse the internal content of XML documents and DTDs. i'm using the sax parser by the way.
I need to extract information about entities in the XML document and DTD (separate reports). Basically i need for the XML document:
- which tag/element the entity occurs in - number of times it occurs in this type of tag - entity type e.g. jpeg file
1)For the XML File, I was thinking of using the Class DefaultHandler2 in org.xml.sax.ext. Is this the best interface/class to use? (say, for e.g. rather than ContentHandler + EntityResolver)
2)For the DTD I need element the elements, attributes as well as entities contained in the document.
However, the DTDHandler in the sax package only seems to refer to DTD declarations in the xml document rather than to analyse the actual DTD contents.
Is there any way i can have access to the DTD contents through the Sax package?
I was thinking of using org.apache.xerces.parsers.DTDParser, do you think this would be wise?
ANY suggestions or ideas are welcome and i'd be very grateful! thankyou!!!!!!!
(i've searched in practically all relevant apis, and faqs, and other threads but they haven't helped me much)
Sylvia.
_________________________________________________________________
Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
