Re: XML / Unicode / SAX question

2007-07-03 Thread Stefan Behnel
IamIan wrote: > I am using SAX to parse XML that has numeric html entities I need to > convert and feed to JavaScript as part of a CGI. I can get the > characters to print correctly, but not without being surrounded by > linebreaks: > > def characters(self, ch): > if self.isNews: > ch =

Re: XML / Unicode / SAX question

2007-07-03 Thread Stefan Behnel
Stefan Behnel wrote: > Note that you have to merge character sequences yourself in SAX. > There is no guarantee into how many chunks the textual context of a single tag ^ content ^ > is broken before it is passed to the characters() SAX method.