ns_xml that gives you access to the
GNOME XML library,
also known as libxml or gnome-xml.
ns_xml parse ?-persist? string
This returns a document handle that can be used in subsequent calls to
ns_xml doc. The document will be freed at the end of the
current AOLserver transaction, unless the -persist
argument is specified, in which case the document must be explicitly
freed with ns_xml doc free.
Documents consist of a tree of nodes, starting from the root of
the document; various ns_xml subcommands let you examine
the node tree (and eventually will let you modify it).
Documents and nodes are referred to by handles, similar to file handles or ns_set handles.
ns_xml doc root doc_id -
returns a handle for the root node of the document.
ns_xml doc free doc_id -
frees the document. Further calls to
ns_xml doc subcommands with this handle will
result in an error.
ns_xml node children node_id - returns a
list of node handles which are the children of this node.
ns_xml node get node_id prop_name - returns the
value of the property named prop_name for this node.
ns_xml node set node_id prop_name value -
sets the value for the property named prop_name for this
node.
void *userData2 pointer to the xmlParserCtxt
structure to make it feasible to do custom error reporting of parse
errors.