Installing Axl library and using it

Introduction: XML development

Axl library is an XML library written in ANSI C, which is known to work on Microsoft Windows, GNU/Linux, *-BSD, GNU/Linux under Amd64/Itanium and MacOS/X platforms.

Here are a set of instructions to get the library compiled for your platform:

GNU/Linux (or any posix OS) installation instructions

First, download the package from the download section. Check this section to know more about this.

Then use the standard procedure to get compiled an autotool ready package. Here are the steps:

  bash: ~$ tar xzvf axl-0.2.1.b1984.g1985.tar.gz
  bash: ~$ cd axl-0.2.1.b1984.g1985/
  bash: ~/axl-0.2.1.b1984.g1985 $ ./configure
  bash: ~/axl-0.2.1.b1984.g1985 $ make
  bash: ~/axl-0.2.1.b1984.g1985 $ make install

Windows installation instructions

Axl library comes with packages already built for Microsoft Windows platforms. Check the download section to get them.

Using LibAxl library (installations with pkg-config infrastructure)

Axl Library is composed by a base library, which provides all XML 1.0 function. Additionally, a separated library is provided for Namespace functions.

Axl library comes with pkg-config support, which makes easy to use it inside your pkg-config enable projects.

To check current support for your Axl Library you can execute:

  bash: ~$ pkg-config --libs --cflags axl

In the case you want give support for XML Namespaces, you must use:

  bash: ~$ pkg-config --libs --cflags axl-ns

To include support into your autotool checks (configure.ac/in files) you can place the following piece:

 PKG_CHECK_MODULES(LIBRARIES, axl) 

Again, add axl-ns to the previous instruction if you want your package to also check for Axl Library Namespace support.

Axl Library headers

For all platforms, Axl Library base headers has to be included as follows:
 #include <axl.h>

In the case Namespace is required, you must use:

 #include <axl_ns.h>