libxml++  4.9.1
About: libxml++ is a C++ wrapper for the libxml XML parser library.
  Fossies Dox: libxml++-4.9.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

libxml++ Reference Manual


libxml++ is a C++ wrapper for the libxml2 XML parser and builder library. It presents a simple C++-like API that can achieve common tasks with less code.

See also the libxml++ Tutorial and the libxml++ website.


Basic Usage

Include the libxml++ header:

(You may include individual headers, such as libxml++/document.h instead.)

If your source file is, you can compile it with:

g++ -o program `pkg-config --cflags --libs libxml++-4.0`

If your version of g++ is not C++11-compliant be default, add the -std=c++11 or -std=c++0x option.

Alternatively, if using autoconf, use the following in


Then use the generated LIBXMLXX_CFLAGS and LIBXMLXX_LIBS variables in the project files. For example: