validation of XML document which does not contain DOCTYPE declaration

Joined
Apr 13, 2009
Messages
1
Reaction score
0
Hi,

I am using SAX2XMLReader API of Xerces-C to parse xml documents. I want to validate an XML document which does not have any DOCTYPE declaration within the document itself. The DTD file is present on the system disk against which validation is to be done.

Is there any way I can validate XML document against a DTD file using SAX2XMLReader?

My XML document does not have any DOCTYPE declaration and if it has one I want that to be ignored and validation should be done against the DTD file which I can provide.

Thanks in advance.

Cheers,
Manish Tiwari
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top