The lxml.objectify sub-package is extremely handy for parsing and creating XML. In this article, we will show how to create XML using the lxml package. We'll start with some simple XML and then try to replicate it. Let's get started!
If you have followed this blog for a while, you may remember that we've covered several XML parsing libraries that are included with Python. In this article, we'll be continuing that series by taking a quick look at the ElementTree library. You will learn how to create an XML file, edit XML and parse the […]
Note: The following post was originally published over on Dzone. I changed the title because I already wrote several XML parsing articles and don't want my readers to get this one confused with the others. One of the common tasks I am given in my day job is to take some data format input and […]
A couple years ago I started a series of articles on XML parsing. I covered lxml's etree and Python's included minidom XML parsing library. For whatever reason I didn't notice lxml's objectify sub-package, but I saw it recently and decided I should check it out. To my mind, the objectify module seems to be even […]
November 20, 2010 by
Mike Last time, we looked at one of Python's built-in XML parsers. In this article, we will look at the fun third-party package, lxml from codespeak. It uses the ElementTree API, among other things. The lxml package has XPath and XSLT support, includes an API for SAX and a C-level API for compatibility with C/Pyrex modules. […]
November 12, 2010 by
Mike If you're a long time reader, you may remember that I started programming Python in 2006. Within a year or so, my employer decided to move away from Microsoft Exchange to the open source Zimbra client. Zimbra is an alright client, but it was missing a good way to alert the user to the fact […]