Skip to content

Instantly share code, notes, and snippets.

@squarepegsys
Created August 7, 2014 13:51
Show Gist options
  • Save squarepegsys/7e3da500130d5e4ca4d1 to your computer and use it in GitHub Desktop.
Save squarepegsys/7e3da500130d5e4ca4d1 to your computer and use it in GitHub Desktop.
Pseudo XML Python
tag1 = et.find("the_tag['sID']='GUID'")
tag2 = tag1.find("the_tag['eID']='GUID'")
content = tag2.previousSibling.text()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment