libxmlpp/5.2.0

libxml++ (a.k.a. libxmlplusplus) provides a C++ interface to XML files
Recipe info
2024-01-17

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libxmlpp/5.2.0

Using libxmlpp

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libxmlpp/5.2.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libxmlpp/5.2.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): libxmlpp
  • CMake target name(s): libxmlpp::libxmlpp
  • pkg-config file name(s): libxml++-5.0.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(libxmlpp REQUIRED)
# ...
target_link_libraries(YOUR_TARGET libxmlpp::libxmlpp)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libxmlpp homepage listed above:

#include "libxml++/attribute.h"
#include "libxml++/attributedeclaration.h"
#include "libxml++/attributenode.h"
#include "libxml++/document.h"
#include "libxml++/dtd.h"
#include "libxml++/exceptions/exception.h"
#include "libxml++/exceptions/internal_error.h"
#include "libxml++/exceptions/parse_error.h"
#include "libxml++/exceptions/validity_error.h"
#include "libxml++/exceptions/wrapped_exception.h"
#include "libxml++/io/istreamparserinputbuffer.h"
#include "libxml++/io/ostreamoutputbuffer.h"
#include "libxml++/io/outputbuffer.h"
#include "libxml++/io/parserinputbuffer.h"
#include "libxml++/keepblanks.h"
#include "libxml++/libxml++.h"
#include "libxml++/nodes/cdatanode.h"
#include "libxml++/nodes/commentnode.h"
#include "libxml++/nodes/contentnode.h"
#include "libxml++/nodes/element.h"
#include "libxml++/nodes/entitydeclaration.h"
#include "libxml++/nodes/entityreference.h"
#include "libxml++/nodes/node.h"
#include "libxml++/nodes/processinginstructionnode.h"
#include "libxml++/nodes/textnode.h"
#include "libxml++/nodes/xincludeend.h"
#include "libxml++/nodes/xincludestart.h"
#include "libxml++/noncopyable.h"
#include "libxml++/parsers/domparser.h"
#include "libxml++/parsers/parser.h"
#include "libxml++/parsers/saxparser.h"
#include "libxml++/parsers/textreader.h"
#include "libxml++/relaxngschema.h"
#include "libxml++/schemabase.h"
#include "libxml++/ustring.h"
#include "libxml++/validators/dtdvalidator.h"
#include "libxml++/validators/relaxngvalidator.h"
#include "libxml++/validators/schemavalidatorbase.h"
#include "libxml++/validators/validator.h"
#include "libxml++/validators/xsdvalidator.h"
#include "libxml++/xsdschema.h"
#include "libxml++config.h"