What Xml engine (parser) advise? The engine must be written in C or C ++. Basic options:

  1. Simple answer parsing algorithm.
  2. Simple query creation algorithm.
  3. Free.
  4. Open source code.
  5. GPL license.
  6. A set of examples of using (samples) included.
  • Explain what is “answer parsing” and “creating a query” in the context of XML? And further. As far as I know the GPL license, it implies free and open source code. Then why are you talking about this again separately? Do you really need the GPL? Is the LGPL suitable? or MIT? - y0prst

3 answers 3

The most stable library contains a large number of protocols - LibXml2 . This library is written in C, the footprint is cross-platform. Goes in open source. A large number of compilation options, which, when not needed, makes it possible to abandon third-party dependencies.

In my opinion, Tiny XML might work.

This is a lightweight library with only basic xml functionality. It is well suited for building simple xml expressions.

    Try Xerces XML Parser , your requirements are met, only the license is the Apache Software License, Version 2.0, and not the GPL.

    • one
      This library is very heavy. Have you ever used it yourself? - Nicolas Chabanovsky ♦
    • When I used this library, I noticed that it had poor compatibility from version to version, i.e. on different releases it behaves differently. I would not advise her. - Nicolas Chabanovsky ♦

    pugixml is a lightweight, simple and fast XML parser for C ++ with XPath support. True, there is a MIT license.