title: How to i extract the data from xml with lxml?
body: <p>I have problem with extracting data from a xml file what contains the lxml. I've tried to extract data with use of lxml library but i have no output at all.</p>
  
  <pre><code>from lxml import etree 
  tree = etree.parse("ifm-00028A-20170711-IODD1.1.xml")
  root = tree.getroot()
  levels = root.findall('DeviceIdentity', root.nsmap)
  for DeviceIdentity in levels:
  data_1 = int(DeviceIdentity.find('deviceId').text)
  print(data_1)
  </code></pre>
  
  <p>[IODD][1]</p>
  
  <p>I need for example get the value from the vendorId and deviceId</p>
  
  <p>Thanks for help !</p>
  
  <p>Sample of the xml file 
     <a href="https://i.stack.imgur.com/Ih4Tk.png" rel="nofollow noreferrer">https://i.stack.imgur.com/Ih4Tk.png</a></p>