Skip to content

Instantly share code, notes, and snippets.

@serian
Created February 2, 2011 09:38
Show Gist options
  • Save serian/807469 to your computer and use it in GitHub Desktop.
Save serian/807469 to your computer and use it in GitHub Desktop.
python xml xpath
from lxml import etree
tree = etree.parse(file_path)
date_str =tree.xpath('//first_retrieve/text()')[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment