Anonymous user
XML/XPath: Difference between revisions
→{{header|Python}}
No edit summary |
|||
Line 217:
xmlfile = file("test3.xml") # load xml document from file
xmldoc = xmldom.parse(xmlfile).documentElement # parse from file stream or...
xmldoc = xmldom.parseString("<inventory title="OmniCorp Store #45x10^3">...</inventory>").documentElement #
# 1st Task: Retrieve the first "item" element
|