[ python-Bugs-886690 ] dom.Node.nodeValue not populated
SourceForge.net
noreply at sourceforge.net
Wed Jan 28 22:36:32 EST 2004
Bugs item #886690, was opened at 2004-01-29 14:30
Message generated for change (Comment added) made by raide
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=886690&group_id=5470
Category: XML
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Raide (raide)
Assigned to: Nobody/Anonymous (nobody)
Summary: dom.Node.nodeValue not populated
Initial Comment:
I get the following behaviour:
>>> xmlStr = "<foo id='10'>test</foo>"
>>> from xml.dom.ext.reader import Sax2
>>> import xml.dom
>>> reader = Sax2.Reader()
>>> dom = reader.fromString(xmlStr)
>>> dom.getElementsByTagName('foo')[0].getAttribute('id')
u'10'
>>> dom.getElementsByTagName('foo')[0].nodeValue
>>>
which seems to be a bug. Perhaps my understanding of
the nodeValue attribute is wrong. Im running 2.3.3 on
Fedora Core 1
----------------------------------------------------------------------
>Comment By: Raide (raide)
Date: 2004-01-29 14:36
Message:
Logged In: YES
user_id=122250
er... sorry, this form stripped the tags from xmlStr, it was:
>>> xmlStr = "<foo id='10'>test</foo>"
if the form strips html special chars then:
>>> xmlStr = "(foo id='10')test(/foo)" #replace ( and ) with
angle brackets
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=886690&group_id=5470
More information about the Python-bugs-list
mailing list