18 May 2012 05:06
Announcing SOX: Sequential Output of XML
John W. Shipman <john <at> nmt.edu>
2012-05-18 03:06:05 GMT
2012-05-18 03:06:05 GMT
My CGI script that generates a huge XHTML table has been running
into storage limitations because it uses lxml to build the table.
So I build a Python module that applications can use to generate
any XML content as a stream, so you can generate arbitrarily
large XML files with a trivial amount of storage:
http://www.nmt.edu/tcc/projects/sox/
Features:
- Like Fredrik Lundh's builder.py module, it takes very little
code to generate a lot of XML. If you're unfamiliar with this
little gem, see here:
http://effbot.org/zone/element-builder.htm
- The module insures that every start tag has a matching end tag.
Feel free to try this package out (Creative Commons BY-NC-ND
license). I would greatly appreciate any feedback.
Best regards,
John Shipman (john <at> nmt.edu), Applications Specialist
New Mexico Tech Computer Center, Speare 146, Socorro, NM 87801
(575) 835-5735, http://www.nmt.edu/~john
``Let's go outside and commiserate with nature.'' --Dave Farber
_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml <at> lxml.de
(Continue reading)
RSS Feed