Skip to content

Instantly share code, notes, and snippets.

Created Nov 29, 2013
What would you like to do?
import urllib
from lxml import etree
parl_members_xml = etree.parse(urllib.urlopen(''))
parl_members = parl_members_xml.getroot()
print etree.tostring(parl_members.find('Member[@Member_Id="638"]'))
for member in parl_members:
if member.attrib['Member_Id'] == '638':
print etree.tostring(member)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment