Arun Ramdas wrote: > > I am using Xerces-c 1.6 for XML parsing. Is there a way to specify the name > of the DTD file on the fly before performing the parsing? (I wont get the > DTD reference in the incoming XML)
No, there isn't. You can instead use a Schema, and call either parser.setExternalNoNamespaceSchemaLocation("schema.xsd"); or parser.setExternalSchemaLocation("schema.xsd"); Joachim -- work: [EMAIL PROTECTED] (http://www.netacquire.com) private: [EMAIL PROTECTED] (http://www.kraut.ca) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]