CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    9

    Question 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

  2. #2
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    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

  3. #3
    Join Date
    Apr 2009
    Posts
    1

    Re: Validating XML document using external DTD in VC++

    And what should I do if I want to ignore the dtd in the xml and use an external DTD?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured