Searching for XML Elements : DOM : XML PYTHON TUTORIALS


PYTHON TUTORIALS » XML » DOM »

 

Searching for XML Elements


from xml.dom import minidom 
xmldoc = minidom.parse('binary.xml') 
reflist = xmldoc.getElementsByTagName('ref')     
print reflist 
print reflist[0].toxml() 
print reflist[1].toxml()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo XML
» DOM