Get element by name : XML Element : XML PYTHON examples


PYTHON examples » XML » XML Element »

 

Get element by name






from xml.dom import minidom 
xmldoc = minidom.parse('sample.xml') 
title = xmldoc.getElementsByTagName('title')[0].firstChild.data 

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo XML
» XML Element