June 2000
Intermediate to advanced
556 pages
8h 45m
English
In chapter 11, we saw how the W3C's Document Object Model (DOM) can be used with Python. Like the DOM, Pyxie provides a tree-oriented API to XML processing. In Pyxie, an xTree object provides tree-oriented access to the structure and content of an XML document. Once loaded into an xTree, an XML document can be navigated in any direction, its contents can be cut and pasted, and new structures can be added to the tree as required. Also, xTree objects can be used to re-create XML syntax by simply printing them.
In the following program, an xTree object is created from the hello.xml sample file of this chapter.
CD-ROM reference=12010.txt """ Simple tree-driven XML processing with Pyxie """ from pyxie import * import ...
Read now
Unlock full access