Get Element value with minidom, Python

Posted by Eef on Stack Overflow See other posts from Stack Overflow or by Eef
Published on 2008-11-25T13:57:02Z Indexed on 2010/04/13 0:23 UTC
Read the original article Hit count: 429

Filed under:
|
|

Hi Guys,

I am creating a GUI frontend for the Eve Online API in Python.

I have successfully pulled the XML data from their server.

I am trying to grab the value from a node called "name"

from xml.dom.minidom import parse
dom = parse("C:\\eve.xml")
name = dom.getElementsByTagName('name')
print name

This seems to find the node ok but the output is below:

[<DOM Element: name at 0x11e6d28>]

How could I get it to print the value of the node?

Cheers

© Stack Overflow or respective owner

Related posts about python

Related posts about dom