On 10/30/11 10:41 AM, Aahz wrote:
> On Sat, Oct 29, 2011, Paul Tremblay wrote:
>> I've written two patches. One is for utils.py. It includes two new
>> classes and two new functions.
>> The classes are needed to make the SAX parser work and should not be
>> invoked directly.
> Why are you using SAX? Instead you probably want
etree is not compatible with Python 2.3. SAX is robust, standard, and
fast for this task. The most complex part of the code involves handling
namespaces. By using SAX, I can control the formatting of the
namespaces. For example, I can allow for a default namespace so that the
namespace isn't written for each element, making the XML easier to read.