Solved

PHP5 > Easiest way to parse SOAP/XML string?

Posted on 2009-04-08
1
4,195 Views
Last Modified: 2013-11-18
I want to parse the attached SOAP-XML string using SimpleXML_Load_String() but the simpleXML function isn't able to parse the string even though I tried previous solution at link below.  Is there anything I can do to parse this string into an array?

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_24296583.html
<?php
$obj = SimpleXML_Load_String($xml);
echo  var_dump($obj);  
?>

Open in new window

xml-data.txt
0
Comment
Question by:Geoff Millikan
1 Comment
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 24104959
See http://www.php.net/manual/en/function.xml-parse-into-struct.php
If you want a more specific array structure you need to program it.
Btw vardump of simple-xml does not reveal all information the simple-xml-node contains.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question