Skip to content

Instantly share code, notes, and snippets.

@tdl
Last active December 14, 2015 05:09
Show Gist options
  • Save tdl/5033139 to your computer and use it in GitHub Desktop.
Save tdl/5033139 to your computer and use it in GitHub Desktop.
De-tag XML
ruby -rnokogiri -ropen-uri -e 'puts Nokogiri::XML(open("http://www.w3schools.com/xml/note.xml")).xpath("//text()").to_s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment