Hi Tim,

The easiest way is like this:

data = <<-EOS
  <<soap xml document goes here>>
EOS

doc = XML::Document.string(data)
nodes = doc.find('//ez:GetLatestSchedulesExResponse',
                 'ez' => 'http://www.ezitracker.com/eziTrackerData/')
puts nodes.length
nodes.each do |node|
  puts node
end

Since GetLatestSchedulesExResponse' namespace doesn't have a numer (since its the default namespace), you have tell libxml what to call it. You can also register the namespace with libxml, but the above approach is probably easiest.

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to