☰ Menu
CLI Open source 21 installs/mo

libxml++ for Mac

libxml++

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++

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-05-13; current version 5.6.1, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
5.6.12026-05-13Stable817 KBDownload——
4.4.12026-05-13Stable819 KB———
3.2.62026-05-13Stable808 KB———
2.42.42026-05-13Stable830 KB———
5.6.02025-10-28Stable816 KB———
4.4.02025-10-28Stable818 KB———
5.4.02024-08-13Stable866 KB———
4.2.02024-08-13Stable852 KB———
5.2.12024-08-12Stable865 KB———
5.2.02024-01-11Stable878 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:

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
libxml++5.6.1LGPL-2.1-or-laterCLI21
quazipv1.7.2LGPL-2.1-onlyCLI16
fred1.2.1MITCLI18
libevdev1.14.0MITCLI32

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…