Information About

Libxml2





| Information

  Name libxml2
  Logo
  Screenshot
  Caption
  Developer
  Operating System Unix-like , Windows, CygWin, MacOS, RISC OS, OS/2, VMS, QNX, MVS
  Genre XML Parser
  License MIT License
  Website xmlsoftorg


libXML is a library for parsing XML documents. It is written in the C Programming Language , and provides bindings to other languages. It was originally developed for the GNOME project, but can be used outside it. The libXML code is highly portable and is released under the MIT License . The current version is 2.6.28.

Compared to similar projects, libXML has a relatively complete and accessible documentation. It has even a useful tutorial, even if this still uses version 1 style.


INSTALLATION

A very simple tutorial that explains how to compile and install libxml2 on Linux can be found here .


USAGE EXAMPLES



Sample XML document





1 1 2 3 5 8 13 21 34 55 ...


1
1 1
1 2 1
1 3 3 6
...





Sample parser in C



#include
#include
#include
#include
#include


  • Parse a simple XML document, using libxml2


Document syntax: