Python and XML: Sources and Examples

Our Water AMR vendor has been chosen, and the contract is almost signed between the town and vendor. A very interesting project is ramping up, and there is a lot of interesting work ahead.

The vendor we chose, exchanges various kinds of water data using an API and XML documents. I scrambled to start finding XML parsing examples on the web. This page has some good examples of one of three libraries for parsing XML, ElementTree. The other two libraries, SAX and DOM XML are well regarded, but not as highly as ElementTree.

The link is a little outdated, but very useful. I am using Python 2.5.2, but did not have to install PyXML, which is currently not being maintained.

I also found a good example out at,

and some good documentation at

As the project progresses, there will undoubtedly be a lot more to come.

Bye for now.

1 Comment

Filed under General

One response to “Python and XML: Sources and Examples

  1. you may also want to check out vtd-xml, the latest and most advanced xml processing model


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s