Skip to content

Instantly share code, notes, and snippets.

@tyler-smith
Created May 3, 2013 19:25
Show Gist options
  • Save tyler-smith/5513106 to your computer and use it in GitHub Desktop.
Save tyler-smith/5513106 to your computer and use it in GitHub Desktop.
require 'nokogiri'
a = Nokogiri::XML.parse('...')
a.xpath('/PAGES/PAGE[1]/FILES[1]/FILEDATA/FILENAMES[1]/FILENAME/FILE').text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment