locked
Which MSXML verion support parse XML 1.1? RRS feed

  • Question

  • I've read this one "http://social.msdn.microsoft.com/forums/en-US/xmlandnetfx/thread/d8afa289-b187-43dc-a548-be12f66556de" and know that it was a post 6 years ago.

    Here are my questions:

    1. Any MSXML3/4/5/6.dll can parse XML 1.1? I tested with MSXML6.dll, it can not load XML 1.1 file, which really surprised me. (Is that right?)

    2. If I have a XML 1.1 file to parse, which API can I used in Windows? Or what are the options to parse a XML 1.1 file?

    Thank you in advance.
    • Edited by milesma80 Monday, April 29, 2013 8:44 AM
    Monday, April 29, 2013 1:08 AM

All replies

  • Microsoft's XML parsers (the various versions of MSXML, XMLLite, and the XmlReader implementations in the .NET framework) do only support XML 1.0, I am afraid.

    With .NET some features of XML 1.1 like allowing character references to control characters can be enabled when parsing or creating XML 1.0 documents, see http://msdn.microsoft.com/en-us/library/system.xml.xmlreadersettings.checkcharacters.aspx. I am not sure whether any MSXML version supports something similar. And of course the document needs to declare version="1.0" nevertheless, only character references are then not checked.


    MVP (XML, Data Platform Development) 2005/04 - 2013/03 My blog

    Monday, April 29, 2013 8:55 AM
  • As for parsing XML 1.1, as Microsoft does not provide an XML 1.1 parser, you need to look into third party solutions like http://xerces.apache.org/xerces-c/.

    MVP (XML, Data Platform Development) 2005/04 - 2013/03 My blog

    Monday, April 29, 2013 5:08 PM