Solved

PHP5 > Easiest way to parse SOAP/XML string?

Posted on 2009-04-08
1
4,176 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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 how to create an extensible mechanism for linked drop downs.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now