Skip to content

Instantly share code, notes, and snippets.

@tdl
Created June 19, 2012 08:53
Show Gist options
  • Save tdl/2953090 to your computer and use it in GitHub Desktop.
Save tdl/2953090 to your computer and use it in GitHub Desktop.
Get all position titles from an HR-XML Resume file
require 'nokogiri'
doc = Nokogiri::XML(File.read(ARGV[0]))
puts doc.xpath("/xmlns:Resume/xmlns:StructuredXMLResume/xmlns:EmploymentHistory/xmlns:EmployerOrg/xmlns:PositionHistory/xmlns:Title/text()")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment