From 7300193becde71a344c8ac0973dc290fa24d800d Mon Sep 17 00:00:00 2001
From: Raphaƫl Hertzog
Note to people interested in building bindings an XML API description file which allows to automate a large part of the Python bindings, this includes function descriptions, enums, structures, typedefs, etc... The Python script used to -build the bindings is python/generator.py in the source distribution.
To install the Python bindings there are 2 options:
To install the Python bindings there are 2 options:
The Python module is called libxml2; parseFile is the equivalent of xmlParseFile (most of the bindings are automatically generated, and the xml prefix is removed and the casing convention are kept). All node seen at the -binding level share the same subset of accessors:
name
: returns the node namename
: returns the node nametype
: returns a string indicating the node typecontent
: returns the content of the node, it is based on
xmlNodeGetContent() and hence is recursive.