I am using Xerces-C SAX2 to parse some documents that I write. When I write them, I would like to include a reference to an appropriate DTD in a doctypedecl. However, I want to do so basically for the purposes of people looking at the documents, or trying to build their own. I do *not* want Xerces to pay attention to the DTD while parsing the XML, and I *especially* do not want Xerces to try to fetch the DTD for any purpose (this application will be running on non-internet enabled machines, and speed is of the essence).
So, essentially, I would like to know if it's possible to set up Xerces-C SAX2 to ignore a well-formed doctypedecl, and if so, how. Again, please note that by "ignore", I mean more than just (for example) "If I don't set a DTD handler, Xerces won't pass me notification of DTD events". Whether or not I get notified of DTD events is not the issue - it's only a side effect. The issue is that I don't want Xerces going and trying to fetch the DTD in the first place. Thanks in advance for any help. Bob Vesterman.
