Skip to content

Instantly share code, notes, and snippets.

@ojacobson
Created March 28, 2013 18:58
Show Gist options
  • Save ojacobson/5265849 to your computer and use it in GitHub Desktop.
Save ojacobson/5265849 to your computer and use it in GitHub Desktop.
>>> from lxml import etree
>>>
>>> document = etree.fromstring('<hello />')
>>> document.xpath('name(/node())')
'hello'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment