XML toolkit in C, originally developed for GNOME
open sourceMITfree
libxml2 is an XML toolkit written in C, originally developed for the GNOME Project and maintained by volunteers. It parses and serialises XML and HTML, and supports XPath, XInclude, XML Catalogs, Canonical XML, RELAX NG, XML Schemas 1.0 and Schematron, with optional Python bindings and the xmllint command-line tool. It builds with GNU Autotools, CMake or Meson.
Ways to install
Package managers
Problems it solves
- parse and validate XML documents against an XML Schema from C code
- a fast C library to read HTML and query it with XPath
- validate XML files against RELAX NG from the command line
- the standard XML parser that other languages' bindings build on
Features
- XML and HTML parsers with serialisation
- RELAX NG and XML Schemas 1.0 validation, Schematron optional
- Canonical XML 1.0 and XML Catalogs
- optional Python bindings
- xmllint command-line tool
- builds with Autotools, CMake or Meson
Limitations
- Its maintainers don't recommend using it to process untrusted data, and security bugs are handled on a best-effort basis by volunteers2
Alternatives
The same job
These do what libxml2 does.
- roxmltree Represent an XML as a read-only tree.