SHARE
TWEET

xml problem in parsing the great grandchildren

a guest Nov 12th, 2014 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top