Get node name with minidom
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-05-08T20:11:33Z
Indexed on
2010/05/08
20:18 UTC
Read the original article
Hit count: 189
Is it possible to get the name of a node using minidom?
for example i have a node:
<heading><![CDATA[5 year]]></heading>
what i'm trying to do is store the value heading
so that i can use it as a key in a dictionary,
the closest i can get is something like
[<DOM Element: heading at 0x11e6d28>]
i'm sure i'm overlooking something very simple here, thanks!
© Stack Overflow or respective owner