|
Post by carmine on Sept 20, 2010 4:37:47 GMT -5
I had some problems with the methods "getElementsByTagName()" and "getAttribute()" After some research I found a solution to get text inside tags. This is an example for who has the same problem:
from xml.dom.minidom import parse, Node
for node1 in xml.getElementsByTagName('Mynt'): for node2 in node1.childNodes: if node2.nodeType == Node.TEXT_NODE: print (node2.data)
|
|