Extracting Nodes Selected by XPath Specifiers : Handler : XML PYTHON examples


PYTHON examples » XML » Handler »

 

Extracting Nodes Selected by XPath Specifiers


 
import sys
from xml.dom import minidom
from xml import xpath

doc = minidom.parse(open(sys.argv[1]))

result =  xpath.Evaluate('/recipe/ingredients/item',doc)
print result

   
  



Leave a Comment / Note


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


PYTHON examples

 Navioo XML
» Handler