Re: using TreeBuilder in an ElementTree like way

2006-07-01 Thread Fredrik Lundh
Greg Aumann wrote: > In reading the elementtree documentation I found the > ElementTree.TreeBuilder class which it says can be used to create > parsers for XML-like languages. a TreeBuilder is a thing that turns a sequence of start(), data(), and end() method calls into an Element tree structu

using TreeBuilder in an ElementTree like way

2006-06-27 Thread Greg Aumann
I am trying to write some python code for a library that reads an XML-like language from a file into elementtree data structures. Then I want to be able to read and/or modify the structure and then be able to write it out either as XML or in the original format. I really want the api for the XM