Solved

PHP5 > Easiest way to parse SOAP/XML string?

Posted on 2009-04-08
1
4,202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

696 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