Validating XML document using external DTD in VC++

Hello everyone,

I want to know whether it is possible to validate an XML document, having DTD defination in some other file programatically in a win32 console VC++ application using IXMLDOMDoc etc. interface method? If yes, please tell me how!!

Till now I have done it for XML files having the DTD defination in the same XML file by using put_ValidateOnParse method of IXMLDOMDoc interface.

Thank You,
Sourabh Sharma
[447 byte] By [sharmasourabh54] at [2007-11-19 6:50:20]
# 1 Re: Validating XML document using external DTD in VC++
is possible to validate an XML document, having DTD defination in some other file if U don't want the DTD to be embeded in xml than define it in xml in that way :
<!DOCTYPE MyDocumentType SYSTEM "MyDTDfile.dtd">
Than the file "MyDTDfile.dtd" should be in the same directory (since it is not an abolute path) as the XML file .

Best regards,
Krzemo
Krzemo at 2007-11-10 3:27:39 >