Alexandro Colorado wrote: > Hi I want to parse an XML using sax Any reason why you would want to do that?
> but my big issue are the WhiteSpaces > when they get reported. I want to know how to efficiently ignore them. I > know there are some DocumentHandlers and one specific for ignore > Whitespace but I still come up with a bunch of invisible nodes like \t or > \n. > > Anyone have a tutorial on how to handle SAX for this kind of parsing? Consider using cElementTree's iterparse() instead. http://effbot.org/zone/element-iterparse.htm It's also available in lxml.etree. Stefan _______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig