Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP5 > Easiest way to parse SOAP/XML string?

Posted on 2009-04-08
1
Medium Priority
?
4,220 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to count occurrences of each item in an array.
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…

704 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