I've started working on a project with Apache group's Xerces parser. The
problem is that as I learn about the API, I see no way to access the
elements of the DTD. Since this is a validating parser, I'd certainly
believe that it is parsing the DTD file in order to validate the XML file,
but I see no interface for DOM or SAX.
How can I access the items in the DTD file without writing my own DTD
parser? My project needs to compare two DTD files.
As a second question, because I'm using the parser with C++ and have the
option of DOM, SAX, or SAX2, what are the pros & cons of each? My (newbie)
understanding is that these are different APIs, and DOM is designed more
like the Java API to make translating code from C++ to Java easier. Is that
basically it, or is there more to SAX?