You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CDATA-Sections are lost in the string_value function:
>>> str = '<asdf><![CDATA[lalaal<hallo>lasdfasdf]]></asdf>'
>>> import xml.dom.minidom as minidom
>>> doc = minidom.parseString(str)
>>> import xpath
>>> from xpath.expr import string_value
>>> string_value(doc.firstChild.firstChild)
>>>
>>> string_value(doc)
u''
>>>
I expected:
u'lalaal<hallo>lasdfasdf'
What version of the product are you using? On what operating system?
Python 2.5, Windows 7
Attached is a patch that checks for CDATA-Sections and inserts their content
into the string-value.
Original issue reported on code.google.com by janoscharlipp@gmail.com on 2 Dec 2010 at 7:31
Original issue reported on code.google.com by
janoscharlipp@gmail.com
on 2 Dec 2010 at 7:31Attachments:
The text was updated successfully, but these errors were encountered: