1 from xml.dom import minidom
3 xmldoc=minidom.parse('./xmls/f7.xml')
4 flow=xmldoc.childNodes[0]
5 match=flow.childNodes[11]
9 ip_match = match.getElementsByTagName("ip-match")
10 print 'ip-match:', ip_match
13 # print "ethernet type", match.getElementsByTagName("type")[0].childNodes[0].data
14 # print "ethernet cvok", match.getElementsByTagName("cvok")[0].childNodes[0].data