[XML-SIG] xml.parsers.expat not converting aliased CDATA elements
Alex Morgan
amorgan@mitre.org
Fri, 25 May 2001 12:19:30 -0400
An example of the behavior I am talking about is input that includes the
following:
'<reference> Morse & Feshbach </reference>'
With a CDATA handler:
'def char_data(data):
print data'
Will return 'Morse & Feshbach', when I would like it to return the
original string, as is.
"Martin v. Loewis" wrote:
>
> > When an xml.parsers.expat parser handles CDATA with an '<' in it, it
> > turns this into a '<' when it processes it.
>
> It does not do this for me, using PyXML 0.6.5 on Linux. Can you give a
> specific example where markup in a CDATA section is interpreted?
>
> Regards,
> Martin
--
-Alex Morgan Homepage: http://pubpages.unh.edu/~amorgan
AIM login: HomeySage
Phone: (781) 271-6306
Office: 3K-136, 202 Burlington Rd, Bedford, MA