Version: | 0.20 |
---|---|
Author: | Lars Marius Garshol |
Email: | larsga@ifi.uio.no |
Released: | 21.Mar.98 |
xmlproc is an XML parser written in Python. It performs nearly everything required from a well-formedness checking parser. I plan to make it a fully conforming parser, complete with validation as soon as time allows.
xmlproc comes with a SAX driver and HTML documentation generated by gendoc.
xmlproc can be used both as a command-line parser and as a parser API you can use to write XML applications.
The command-line parser is in xpcmd.py and currently only accepts one argument: the URL to the file to parse. (You can use just the file name instead of a full URL if you like.)
If you want to make a program that gets data from the parser you should subclass the Application class in xmlapp.py. This is a sample xmlproc client:
import xmlproc
class MyApplication(xmlproc.Application):
pass # Add some useful stuff here
p=xmlproc.XMLProcessor()
p.set_application(MyApplication())
p.parse_resource("foo.xml")
xmlproc is free and you can do as you like with it. If you change it, please let me know.
xmlproc is here.
Any and all feedback is welcome, from suggestions for improvements or new features to bug reports.
To be notified by email when a new version is released, fill out this form. I guarantee that these email addresses won't be used for any other purpose, and that you'll receive notification if the service dies.