Quantcast
Channel: EmotiCODE - Snippets and Source Code Search Engine
Viewing all articles
Browse latest Browse all 146

Ruby - Parse an XML document with REXML and print some of the text nodes

$
0
0
require "rexml/document" file = File.new( "MY_FILE.xml" ) doc = REXML::Document.new file doc.elements.each("document/record/upload_list"){ |element| puts element.text if element.text ...

Viewing all articles
Browse latest Browse all 146

Trending Articles