Re: SAX characters() output on multiple lines for non-ascii
Stefan Behnel <[email protected]> Sun, 03 Feb 2008 18:23:24 +0100
| Newsgroups | gmane.comp.python.xml |
|---|---|
| Message-ID | <[email protected]> |
Hi, woodcock wrote: > Thanks for your reply. Well I have looked at it again and I lose the repeated > lines if I remove the \n and simplify part of it to: > > if len(newchars)> 0: > output = ''.join(newchars) > sys.stdout.write(output) > > However if I try and put some of the surrounding text back in either by > concatenating strings or using multiple sys.stdout.write() calls I get > repetitions of the strings. Is there a reason why you want to use SAX? It's one of the most difficult to use XML interfaces. Stefan _______________________________________________ XML-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/xml-sig