This page is a part of Tools for parsing XML with Python.

xmlproc: A Python XML parser

Version: 0.20
Author: Lars Marius Garshol
Email: larsga@ifi.uio.no
Released: 21.Mar.98

What is xmlproc?

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.

Using xmlproc

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

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.)

Parser API

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")

Licence?

xmlproc is free and you can do as you like with it. If you change it, please let me know.

Getting xmlproc

xmlproc is here.

Feedback

Any and all feedback is welcome, from suggestions for improvements or new features to bug reports.

Email notification of new versions

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.

Your full name:
Your email address:

21.Mar.98 13:59, Lars Marius Garshol, larsga@ifi.uio.no. A part of Tools for parsing XML with Python.