Xerces-C++ VS Libxml2

Compare Xerces-C++ vs Libxml2 and see what are their differences.

Xerces-C++

Apache Xerces-C validating XML parser (by apache)
XML

Libxml2

Read-only mirror of https://gitlab.gnome.org/GNOME/libxml2 (by GNOME)
XML
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
Xerces-C++ Libxml2
1 1
112 534
2.7% 2.4%
5.5 9.8
15 days ago about 10 hours ago
C++ C
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Xerces-C++

Posts with mentions or reviews of Xerces-C++. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-14.
  • What second language to learn after Python?
    3 projects | /r/learnprogramming | 14 May 2021
    Well, regarding HTML5, what I've found was libxml (does not support tag-soup HTML5), https://github.com/lexbor/lexbor, for which I was unable to find good documentation ( see https://lexbor.com/docs/lexbor/#dom), Apache Xerces (appears to not support tag-soup HTML5 as well), and Gumbo, which does not appear to be active and to support selectors and XPath (although there are libraries that add that).

Libxml2

Posts with mentions or reviews of Libxml2. We have used some of these posts to build our list of alternatives and similar projects.
  • SVG Based GUI
    1 project | news.ycombinator.com | 24 Jan 2021
    Starting off, SVG is an XML encoding, which is a rather hairy thing to deal with. Just to get a feel for LOCs:

    https://github.com/GNOME/libxml2

    There's also the web's (horrible) tendency to make a diarrhea of special-purpose tags and attributes--many of which could be easily subsumed by basic turing-completeness. Compare to postscript, which was a relatively simple, turing complete, stack machine to begin with.

    And of course, if we start special-purposing things, we're no longer compliant with the standard, and it would be chaos to call it SVG at that point.

What are some alternatives?

When comparing Xerces-C++ and Libxml2 you can also consider the following projects:

Expat - The Expat XML Parser

TinyXML - TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.

PugiXML - Light-weight, simple and fast XML parser for C++ with XPath support

gumbo-parser - An HTML5 parsing library in pure C99

Libxml2 - Read-only mirror of https://gitlab.gnome.org/GNOME/libxml2

TinyXML++ - This project is obsolete. TinyXML-2 offers a very similar C++ interface.