Solved

PHP5 > Easiest way to parse SOAP/XML string?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

895 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

16 Experts available now in Live!

Get 1:1 Help Now