dxml: David's XML/XPath library

Small XML and XPath 1.0 C library

dxml-1.2.tar.gz 11 May 2004 67.3k

Description

This is a public domain XML and XPath 1.0 library written in C, with an emphasis on having a simplified API. It has a partially validating XML processor (making use of DTDs if they are there). Also supports XML namespaces.

The XML is read into memory in a DOM-like fashion, but is intentionally a set of opaque nodes (unlike DOM). The intent is to force you to access the data structures in terms of XPath expressions.

Includes a Python module that allows XPath expression evaluation.

>>> import xml
>>> doc = xml.parse_string(u"<foo />")
>>> doc.select(u"name(/foo)")
'foo'

XPath 2.0 looks much more powerful, but is still a draft at this time.

Licence

This software has been placed in the public domain.