[XML-SIG] ANN: XIST 2.6
walter at livinglogic.de
Tue Oct 26 19:31:14 CEST 2004
XIST 2.6 has been released!
What is it?
XIST is an extensible HTML/XML generator written in Python. XIST is
also a DOM parser (built on top of SAX2) with a very simple and
Pythonesque tree API. Every XML element type corresponds to a Python
class, and these Python classes provide a conversion method to transform
the XML tree (e.g. into HTML). XIST can be considered "object oriented XSL".
What's new in version 2.6?
* A new API named XFind has been added for iterating through XML
trees. XFind expressions look somewhat like XPath expressions but
are pure Python expressions. For example finding all images inside
links in an HTML page can be done like this:
from ll.xist import parsers
from ll.xist.ns import html
node = parsers.parseURL("http://www.python.org/", tidy=True)
for img in node//html.a/html.img:
* ToNode now tries iterating through the value passed in, so it's
now possible to pass iterators and generators (and generator
expressions in Python 2.4) to Frag and Element constructors.
* Parsing broken HTML is now done with the HTML parser from libxml2.
* The parser now has the option to ignore illegal elements,
attributes, processing instructions and entities.
* A new class ll.xist.xsc.NSPool has been added. An NSPool contains
a pool of namespaces from which the parser selects the appropriate
namespace once an xmlns attribute is encountered.
* Other minor changes and updates.
For changes in older versions see:
Where can I get it?
XIST can be downloaded from http://ftp.livinglogic.de/xist/
Web pages are at http://www.livinglogic.de/Python/xist/
ViewCVS access is available at http://www.livinglogic.de/viewcvs/
For information about the mailing lists go to
More information about the XML-SIG