I'm sure its obvious but...XML node question
Timothy Grant
tjg at hyperlinq.net
Mon May 14 12:32:34 EDT 2001
OK,
So I'm playing with XML, and using the minidom.
I can walk my tree, I can play with my attributes, but I can't
see how to get the data in the node.
given the following xml snippet...
<setting setid="minuid">500</setting>
>>> node.getAttribute('setid')
u'minuid'
The minidom example uses some code that looks like this...
def getText(nodelist):
rc = ""
for node in nodelist:
if node.nodeType == node.TEXT_NODE:
rc = rc + node.data
However, the data class variable doesn't seem to exist.
What am I missing?
Thanks.
--
Stand Fast,
tjg.
Timothy Grant www.hyperlinq.net
Chief Technology Officer tjg at hyperlinq.net
HyperLINq Technologies, Inc. <>< (503) 246-3630
>>>>>>>>>>>>>Linux, because rebooting is *NOT* normal<<<<<<<<<
>>>>This machine was last rebooted: 45 days 1:07 hours ago<<
More information about the Python-list
mailing list