← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #233331]: No parsers found error when running from command line

 

Question #233331 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/233331

    Status: Open => Answered

RaiMan proposed the following answer:
This worked for me in all cases:

from xml.dom.minidom import parseString
xml = '<?xml version="1.0"?><test><tag1><node>VALUE</node></tag1></test>'
dom = parseString(xml)
node_list = dom.getElementsByTagName('node')
first_node = node_list[0].firstChild.nodeValue
print first_node

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.