Advertisement
Guest User

xml problem in parsing the great grandchildren

a guest
Nov 12th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import xml.etree.ElementTree as ET
  2.  
  3. inv = open('lshw.xml', 'r')
  4. inv = inv.read()
  5. inv = ET.XML(inv)
  6.  
  7. find_memory =inventory.findall(".//node[@id='bank:*']")
  8.  
  9. # I am stuck here. What is required is description of the system memory, but system has lot of places where class=memory is used and hence i can't use it. i need the one's which has id=bank:0 .. n and collect the decryption of it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement