1、print(tree.xpath('namespace-uri(.)'))
namespace = list(tree.getroot().nsmap.values())
print(namespace[0])
2、
# for measCollec in tree.iterfind(namespace + 'fileHeader/' + namespace+'measCollec'):
# beginTime = dict_to_list(measCollec.attrib)
# break
# print(beginTime)
# for measCollec in tree.iter(tag=namespace + 'measCollec'):
# beginTime = dict_to_list(measCollec.attrib)
# break
# for measData in tree.iter(tag=namespace + 'measInfo'):
# measInfo = measData.findall(namespace+'measTypes')
# print(measInfo[0].text)
# measCollec = tree.getroot().findall(namespace + 'fileHeader')
# print(measCollec[0].attrib.values())