An XML parser written in Common Lisp.
Feature overview
- Namespace-aware, validating XML 1.0 parser
- Two parser interfaces are offered, one _(SAX)-like, the other similar to _(StAX).
- Implementation of W3C DOM included
In-memory representations that can be used with cxml:
- DOM Level 2 Core (included with cxml)
- Lisp lists in the _(xmls) format, included as example code with cxml
- _(cxml-stp), an alternative to DOM (add-on installation)
Relax NG validation is available as an add-on page, see _(cxml-rng).
XPath is implemented by _(plexippus-xpath).
Relation to Closure HTML
cxml itself parses well-formed XML only. To parse HTML, use _(closure-html).
Etymology
cxml is short for Closure XML, in reference to the _(Closure) web browser it was originally written for.
Note that the Closure web browser is not related to the Clozure implementation of Common Lisp and works on various Common Lisp implementations.
Tarball
:(package "http://www.common-lisp.net/project/cxml/download/cxml.tar.gz")