Hello,

I'm using Xerces C++ on AIX. (Version 1.5.2).

My program receives an XML document.
I want to validate this document. The problem is that the line for the DTD is not 
present :
<?xml version="1.0" encoding="iso-8859-1" ?>
<OrderProposalRequest>
...
</OrderProposalRequest>

The method used in the project is to add a line for the DTD :
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE OrderProposalRequest SYSTEM "dtd/OrderProposalRequest.dtd"> 
<OrderProposalRequest>
...
</OrderProposalRequest>

This sounds weird to me.
I think there certainly is a method to tell the parser which DTD to use, if none is 
present in the document ?

I read the documentation of certain classes in xml.apache.org apiDoc (SAX2XMLReader, 
XMLValidator) but I can't guess the way to do it.

Please help.

Thanks in advance,

Laurent PETIT.




Reply via email to