XML reader for native C++

Hi!

I'm looking for a small C++ XML SAX reader, similar to XmlTextReader in .NET. The most important thing is that the library is small can be statically linked. Can anybody recommend me anything

Thanks in advance!



Answer this question

XML reader for native C++

  • Mike Marchand

    As far as I know, if I link my app against version 2.x of MSXML it will require the very same version to be installed on the machine. So my question actually is, whether the old MSXML 2.x is still shipped with newer systems.


  • Kallex

    If you say you want to use Win98 first edition. Than at least MSXML 2.0 is part of the IE. Read kb Article 269238.

    So again no reason to avoid using MSXML!

  • vagrant

    That's of course true. If Windows 98 has MSXML installed by default, there is really no reason to avoid it.
    Just one final question: if I use MSXML 2.0 in my program will it also work with the versions installed with Win XP and 2000


  • ForHeFirstLovedMe

    I never had problems with this.
    Just look at the changes to MSXML3 and MXML4!
    Check the interfaces, but as I know: the basic functions never changed! But whats basic for you :-)

  • shyam sunder

    No this isn't true. MSMXL is a COM interface. And AFAIK the basic interfaces didn't changed. Only new objects and interfaces were added!

  • Sajaki

  • anametrix

    I am also only aware of the one Martin mentioned. You might want to try posting at http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/015/topic.xml in case folks there have more experience with such issues.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • Jeff Savage

    I'm afraid I haven't got much experience with COM. Do you perhaps know where I could find some examples for using MSXML


  • princealadin

    OK thanks for clearing this up. ;)


  • Crosscourt

    Thanks, I just posted there.
    I'm now open to new ideas here and there.


  • Bentes16

    Just look at www.codeproject.com and search for MSXML. You find enough samples there!

    Also search in the MSDN for MSXML and sample, also there is enough stuff.

  • WinL

    Isn't MSXML only available as a DLL I need a small static link library.


  • Scott Ha

    The problem is that the application that I need this reader for, is a viewer for a certain type of data that my primary application (written in C#). This viwer is supposed to run on any version of Windows (starting from 98 first edition) and should be as easily portable (in terms of moving the application from one media to another) as possible.

    Here's a real world example: Someone creates a project with the primary C# application. He wants to present it at a conference and knows that the computer, from which the presentations are done does not have my application installed. If the viewer is really independent of any libraries, he can just burn his project and the viewer executable on a cd and present it without any problems.

    I hope this sheds some light on why I need the XML reader to be statically linked.


  • juanazo

    Tell me why!
    I can not see any advantage. MSXML is availbale on 99,9% of all machines.

  • XML reader for native C++