libxml++ for Mac
libxml++ C++ interface to libxml2 and XML files.
libxml++ — overview
libxml++ C++ interface to libxml2 and XML files.
Introduction
libxml++ (a.k.a. libxmlplusplus) provides a C++ interface to XML files. It uses libxml2 to access the XML files, and in order to configure libxml++ you must have both libxml2 and pkg-config installed.
libxml++-2.6, libxml++-3.0, libxml++-4.0 and libxml++-5.0 are different parallel-installable ABIs. This file describes libxml++-5.0.
See the examples directory for example code.
Use pkg-config to discover the necessary include and linker arguments. For instance,
If you build with Autotools, ideally you would use PKG_CHECK_MODULES in your configure.ac file.
General information
Web site https://libxmlplusplus.github.io/libxmlplusplus/
Download location https://download.gnome.org/sources/libxml++/ (until 5.4.0) https://github.com/libxmlplusplus/libxmlplusplus/releases/
Reference documentation https://libxmlplusplus.github.io/libxmlplusplus/reference/html/
Tarballs contain reference documentation. In tarballs generated with Meson, see the untracked/docs/reference/html directory.
Discussion on GNOME's discourse forum https://discourse.gnome.org/tag/cplusplus https://discourse.gnome.org/c/platform
Git repository https://github.com/libxmlplusplus/libxmlplusplus
Bugs can be reported to https://github.com/libxmlplusplus/libxmlplusplus/issues
Patches can be submitted to https://github.com/libxmlplusplus/libxmlplusplus/pulls
Building
Whenever possible, you should use the official binary packages approved by the supplier of your operating system, such as your Linux distribution.
Building the documentation
The reference documentaion is built with Doxygen.
The manual is a DocBook 5.0 document. These packages are recommended when building the manual (can have other names in other distros): docbook5-xml (Ubuntu and Debian) or docbook5-schemas (Fedora) docbook-xsl (Ubuntu and Debian) or docbook-style-xsl (Fedora)
It may be possible to build without these packages, but it will be slow and error prone. The xmllint command is told to read files from http://docbook.org. The xsltproc command is told to read files from http://docbook.sourceforge.net. The commands first search for local copies of those files. If local copies exist and are installed at expected locations, the commands make no network accesses.
Building on Windows
See MSVC-Builds
Building from a release tarball
Extract the tarball and go to the extracted directory:
It's easiest to build with Meson, if the tarball was made with Meson, and to build with Autotools, if the tarball was made with Autotools. Then you don't have to use maintainer-mode.
How do you know how the tarball was made? If it was made with Meson, it contains files in untracked/docs/ and other subdirectories of untracked/.
Building from a tarball with Meson
Don't call the builddir 'build'. There is a directory called 'build' with files used by Autotools.
If the tarball was made with Autotools, you must enable maintainer-mode:
Details
libxml 的 C 封装
How to install libxml++
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2026-05-13; current version 5.6.1, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| 5.6.1 | 2026-05-13 | Stable | 817 KB | Download | — | — |
| 4.4.1 | 2026-05-13 | Stable | 819 KB | — | — | — |
| 3.2.6 | 2026-05-13 | Stable | 808 KB | — | — | — |
| 2.42.4 | 2026-05-13 | Stable | 830 KB | — | — | — |
| 5.6.0 | 2025-10-28 | Stable | 816 KB | — | — | — |
| 4.4.0 | 2025-10-28 | Stable | 818 KB | — | — | — |
| 5.4.0 | 2024-08-13 | Stable | 866 KB | — | — | — |
| 4.2.0 | 2024-08-13 | Stable | 852 KB | — | — | — |
| 5.2.1 | 2024-08-12 | Stable | 865 KB | — | — | — |
| 5.2.0 | 2024-01-11 | Stable | 878 KB | — | — | — |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Depended on by 3 apps
The following apps install it automatically, ranked by 30-day installs:
- cherrytree50 installs/mo
- synfig22 installs/mo
- synfig22 installs/mo
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| libxml++ | 5.6.1 | LGPL-2.1-or-later | CLI | 21 |
| quazip | v1.7.2 | LGPL-2.1-only | CLI | 16 |
| fred | 1.2.1 | MIT | CLI | 18 |
| libevdev | 1.14.0 | MIT | CLI | 32 |
Similar apps: Command-line Tools
quazip
QuaZip is the C++ wrapper for Gilles Vollant's ZIP/UNZIP package (AKA Minizip) using Qt library.fred
fred is a command-line tool and Python interface wrapper for the FRED economic data platform.libevdev
libevdev is a wrapper library for Linux input device development that provides an easier-to-use…openssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratiopkgconf
pkgconf is a program which helps to configure compiler and linker flags for development…Categories: Command-line Tools