ElementTree XML Namspace
Stefan Behnel
stefan_ml at behnel.de
Sat Nov 15 04:36:38 EST 2008
Hunter wrote:
> We are reviewing a vendor who will output some data in an XML format.
> I will then use python to convert the data to another format for
> upload to another vendor.
Take a look at lxml.objectify, it has a nicer API, especially if you are new
to XML. It also handles loads of namespace issues under the hood, so that you
don't get bothered with them.
http://codespeak.net/lxml/objectify.html#element-access-through-object-attributes
http://codespeak.net/lxml/objectify.html#namespace-handling
You said "reviewing". Does that indicate that you need validation?
http://codespeak.net/lxml/validation.html
http://codespeak.net/lxml/objectify.html#asserting-a-schema
Stefan
More information about the Python-list
mailing list