Searching Is Actually Recursive : DOM : XML PYTHON TUTORIALS


PYTHON TUTORIALS » XML » DOM »

 

Searching Is Actually Recursive


from xml.dom import minidom 
xmldoc = minidom.parse('binary.xml') 
plist = xmldoc.getElementsByTagName("p")  
print plist 
print plist[0].toxml()                               
print plist[1].toxml() 
print plist[2].toxml()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo XML
» DOM