Getting Child Nodes : XML Children Node « XML « Python






Getting Child Nodes

from xml.dom import minidom                                         
xmldoc = minidom.parse('binary.xml') 
xmldoc.childNodes                                  

xmldoc.childNodes[0]                               

xmldoc.firstChild                                  
           
       








Related examples in the same category

1.toxml Works on Any Nodetoxml Works on Any Node
2.Child Nodes Can Be TextChild Nodes Can Be Text
3.Caching Node Lookups
4.Finding the Direct Children of a Node