libxml++ Reference Manual

2.32.0

description

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.

features

basics

Include the libxml++ header:

 #include <libxml++.h>

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

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

 g++ program.cc -o program `pkg-config --cflags --libs libxml++-2.6`

Alternatively, if using autoconf, use the following in configure.ac:

 PKG_CHECK_MODULES([LIBXMLXX], [libxml++-2.6])

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

 program_CPPFLAGS = $(LIBXMLXX_CFLAGS)
 program_LDADD = $(LIBXMLXX_LIBS)
Generated on Thu Oct 14 15:56:28 2010 for libxml++ by  doxygen 1.6.3