[ create a new paste ] login | about

Link: http://codepad.org/ecVVUPCu    [ raw code | output | fork ]

Ruby, pasted on Aug 9:
1
2
3
4
5
6
7
8
require 'rexml/document'
include REXML

xmldoc = Document.new("<a.b.c />")

xmldoc.elements.each("/a.b.c")  {
   |e| puts "Node Name : " + e.name
}


Output:
1
Node Name : a.b.c


Create a new paste based on this one


Comments: