Skip to content
Roger Peppe's Common Lisp XML Stream PAttern Matcher
Common Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.markdown
cl-xmlspam.asd
documentation.txt
examples.txt
tst.xml
xspam.lisp

README.markdown

cl-xmlspam

Copy of cl-xmlspam library source code, so it's available on GitHub.

cl-xmlspam is an XML reader for Common Lisp that works in streaming mode, so it does not have to load the whole XML file at once.

Original source at: https://common-lisp.net/project/cl-xmlspam/

CLiki page (contains example): http://www.cliki.net/cl-xmlspam

Usage

Download/clone locally, quickload with Quicklisp. NOTE: Functions are in package "xspam".

Original description

Cxml does an excellent job of parsing XML elements, but what do you do when you have a XML file that's larger than you want to fit in memory, and you want to extract some information from it? Writing code to deal with SAX events, or even using Klacks, quickly becomes tedious. Cl-xmlspam is designed to make it easy to write code that mirrors the structure of the XML that it's parsing. It also makes it easy to shift paradigms when necessary - the usual Lisp control constructs can be used interchangeably with pattern matching, and the full power of CXML is available when necessary.

Examples and documentation

See examples.txt and documentation.txt

Author

  • Roger Peppe

License

Unspecified !

You can’t perform that action at this time.