<Checker>
<Scan>
<Info Manu="Aero"
ModelName="64F"
NumErrors="0"
ScanID="" />
</Scan>
</Checker>
def getXmlTagValue( inXml ) :
import xml.dom.minidom
assert os.path.isfile(inXml)
dom = xml.dom.minidom.parse(inXml)
for scan in dom.getElementsByTagName('Scan'):
info = scan.getElementsByTagName('Info')
numErrors = info[0].firstChild.data
print "1"
|