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 http://www.xml.com/pub/a/2003/02/12/py-xml.html 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

http://www.dr-chuck.com/csev-blog/000537.html,

and some good documentation at

http://effbot.org/zone/element.htm

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

Bye for now.

Advertisements

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

    vtd-xml

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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