validation of XML document which does not contain DOCTYPE declaration

Discussion in 'XML' started by mnshtiwari, Apr 16, 2009.

  1. mnshtiwari

    mnshtiwari

    Joined:
    Apr 13, 2009
    Messages:
    1
    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
     
    mnshtiwari, Apr 16, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ray Tayek
    Replies:
    13
    Views:
    2,970
    Ray Tayek
    Dec 2, 2003
  2. mikeyjudkins@yahoo.com
    Replies:
    1
    Views:
    1,193
    Richard Tobin
    Dec 10, 2004
  3. Roger Pack
    Replies:
    3
    Views:
    183
    Roger Pack
    Sep 28, 2010
  4. Jason Carlton
    Replies:
    11
    Views:
    265
    Dr J R Stockton
    Dec 8, 2009
  5. Larry Lindstrom
    Replies:
    19
    Views:
    1,356
    Jonathan N. Little
    Jun 12, 2012
Loading...

Share This Page