Advertisement
pushrbx

Untitled

Apr 30th, 2015
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. from lxml import objectify as ET
  2.  
  3. # store the xml in this var:
  4. data = ""
  5. # generate a objectified tree:
  6. root = ET.fromstring(data.decode("utf-8"), ET.makeparser(recover=True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement