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
I had a similar case, what worked for me was:
name.firstChild.childNodes[0].data
XML is supposed to be simple and it really is and I don't know why python's minidom did it so complicated... but it's how it's made
you can use something like this.It worked out for me
doc = parse('C:\\eve.xml')
my_node_list = doc.getElementsByTagName("name")
my_n_node = my_node_list[0]
my_child = my_n_node.firstChild
my_text = my_child.data
print my_text
It should just be
name[0].firstChild.nodeValue