Hi,
 
I have implemented a Xerces SAX2 parser for an XML file. Now, I
want to validate this file against a DTD. I have written a <!DOCTYPE...>
statement in the XML file. But it doesn't seem to give validation erros if
the XML file does not conform to DTD specification.
 
Please let me know what else needs to be done to validate an XML file
against a DTD file using a SAX2 parser.
A sample code will be really helpful.
 
Thanking in Advance
Vinay.
 
PS: I looked at the sample programs that come with Xerces C++ parser
and also at the FAQ. But I could not find any information about this.

Reply via email to