Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > validation of XML document which does not contain DOCTYPE declaration

Thread Tools

validation of XML document which does not contain DOCTYPE declaration

mnshtiwari mnshtiwari is offline
Junior Member
Join Date: Apr 2009
Posts: 2

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.

Manish Tiwari
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Newbie - CSS Works With Invalid DOCTYPE. Fails With Valid DOCTYPE. Larry Lindstrom HTML 19 06-12-2012 02:07 PM
RCR: String#contain? and Array#contain? Roger Pack Ruby 3 09-28-2010 04:13 PM
Does string contain A, and if so, does a section of string contain B Jason Carlton Javascript 11 12-08-2009 06:07 PM
XSLT processor doesnt like DOCTYPE declaration in XML file XML 1 12-10-2004 01:09 AM
validate xml with scgema using sax gets a: "Valid documents musthave a <!DOCTYPE declaration." Ray Tayek Java 13 12-02-2003 02:17 PM