Skip to content

Instantly share code, notes, and snippets.

@nbogie
Created February 11, 2011 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbogie/822659 to your computer and use it in GitHub Desktop.
Save nbogie/822659 to your computer and use it in GitHub Desktop.
Nokogiri shortcut for using whatever namespace the doc announced
envNodes = mydoc.xpath '//xmlns:environment', mydoc.root.namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment