Searching for XML Elements : XML Element : XML PYTHON examples


PYTHON examples » XML » XML Element »

 

Searching for XML Elements



from xml.dom import minidom 
xmldoc = minidom.parse('binary.xml') 
reflist = xmldoc.getElementsByTagName('ref')      
reflist 

print reflist[0].toxml() 

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo XML
» XML Element