Reading a Nokogiri xpath

require 'nokogiri'

xml = '<a><b>100<c>10</c></b><b>200<c>20</c></b><b>300</b></a>'
doc = Nokogiri::XML(xml)
r = doc.xpath("a/b/c").to_xml
#=> "<c>10</c><c>20</c>"

Tags:
Source:
1155hrs.txt
Published:
22-11-2012 11:55