-1

I need to read the content of a XML file that I receive from a web service.

When i see the source code of my generated page I can see this: http://pastebin.com/hnnzAcPH

I see Id: string(398) "" in my webpage, but not the xml, how can I access and read the xml tag SOAP:Body?

Otto
  • 4,020
  • 6
  • 35
  • 46
  • Of course you dont see the XML. Its evaluated by your browser. The string(398) tells you that its there though. If you want to process it use an XML parser or the SOAP Client extension. Also note that we already have a number of questions asking how to read SOAP responses so you are encouraged to use the Search function. – Gordon Nov 21 '11 at 13:24
  • what about the php file??? it looks like you'r inspecting the variable Id – noob Nov 21 '11 at 13:25
  • so How to read that XML that is inside my webpage? – Otto Nov 21 '11 at 13:30
  • http://stackoverflow.com/search?q=read+soap+response+body+php – Gordon Nov 21 '11 at 13:31

1 Answers1

1

I solved it by myself, in my case:

$xml = $XmlArray->children("soap", true)->Body->children();
Otto
  • 4,020
  • 6
  • 35
  • 46