Project

General

Profile

Bug #11909 » prova5.rb

pierisimone (Simone Pieri), 12/28/2015 03:36 PM

 
require 'libxml'

puts "Child #{Process.pid}"
initstring = "<iso_3166_2_entries><iso_3166_country>kkkkk</iso_3166_country></iso_3166_2_entries>"
parser = LibXML::XML::Parser.string(initstring, :encoding => LibXML::XML::Encoding::UTF_8)
xp = parser.parse
node = xp.find('./iso_3166_country').first
puts node.content
puts "finito ..."

(1-1/7)