[libxml-devel] Trying to parse a soap envelope.

2008-12-01 Thread tim
I have the following soap envelope. http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://www.ezitracker.com/ eziTrackerData/">

Re: [libxml-devel] Trying to parse a soap envelope.

2008-12-01 Thread Charlie Savage
Hi Tim, The easiest way is like this: data = <<-EOS <> 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 GetLatestSchedu

Re: [libxml-devel] Trying to parse a soap envelope.

2008-12-01 Thread tim
> > 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. > Hi Charlie. I tried it but it doesn't work. Here is