Child Nodes Can Be Text : XML Children Node : XML PYTHON examples


PYTHON examples » XML » XML Children Node »

 

Child Nodes Can Be Text


Child Nodes Can Be Text

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

grammarNode = xmldoc.firstChild 


grammarNode.childNodes                             

print grammarNode.firstChild.toxml()               

print grammarNode.childNodes[1].toxml()            

print grammarNode.lastChild.toxml()                
           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo XML
» XML Children Node