Web-Based Ch XML Demos
Ch can seamlessly interface existing C code in either source code
or binary static/dynamical libraries without re-compilation.
With Ch Libxml2 Package for Gnome XML C parser and toolkit,
C programs using Gnome libxml2 API can readily run without
The examples are stored per section depending on the main
focus of the example:
- InputOutput :
Example of custom Input/Output
Output to char buffer
- Tree :
Navigates a tree to print element names
Creates a tree
- XPath :
Evaluate XPath expression and prints result node set.
Load a document, locate subelements
with XPath, modify said elements and save
the resulting document.
- xmlReader :
Parse an XML file with an xmlReader
Parse and validate an XML file with an
Show how to extract subdocuments
- Parsing :
Parse an XML file to a tree and free it
Parse and validate an XML file to a tree and free the result
Parse an XML document in memory to a tree and free it
Parse an XML document chunk by chunk to a tree and free it
- testSAX :
- gjobread :
- run gjobread.c through internet:
This is a real size example, where the actual content of the application data is not kept in the DOM tree but uses internal structures. It is based on a proposal to keep a database of jobs related to Gnome, with an XML based storage structure.