Linked Questions
17 questions linked to/from parse an XML with SimpleXML which has multiple namespaces
17 votes
2 answers
6k views
Reference - How do I handle Namespaces (Tags and Attributes with a Colon in their Name) in SimpleXML?
This question is intended as a reference to answer a particularly common question, which might take different forms: I have an XML document which contains multiple namespaces; how do I parse it with ...
0 votes
1 answer
19k views
PHP Parsing SOAP response [duplicate]
I'm trying to parse the following SOAP response, and need some guidance: <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> ...
3 votes
1 answer
2k views
Parse SOAP response with namespaces in PHP [duplicate]
Any recommendations how to parse this SOAP response and obtain the value of name for the report_type? Notice there are two instances of name; one under report_type and the other under severity. Here ...
1 vote
2 answers
2k views
SimpleXML Parsing Question [duplicate]
All, Trying to parse this SOAP response but xpath() is returning Debug Warning: SimpleXMLElement::xpath() Undefined namespace prefix Debug Warning: SimpleXMLElement::xpath() evaluation failed $...
4 votes
2 answers
18k views
Parsing a SOAP response with PHP in different ways [duplicate]
Possible Duplicate: How to parse SOAP response without SoapClient I have a simple nuSoap XML response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas....
4 votes
2 answers
24k views
SOAP response to XML with SimpleXML
I am trying to convert a SOAP response to XML. SOAP has an envelop and a body <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
4 votes
2 answers
5k views
PHP simpleXML: Handling Unknown Namespaces in SOAP Requests
There are a ton of existing questions about PHP's simpleXML and processing XML with namespaces. All of the questions I've looked at have made a fundamental assumption: The code knows in advance what ...
0 votes
2 answers
6k views
Using xpath on a PHP SimpleXML object, SOAP + namespaces (not working..)
After researching this on SO and google for hours now... I hope to get some help here: (I am just one step away from running a regex to remove the namespaces completely) First this is the XML: <?...
0 votes
1 answer
2k views
Convert SOAP response to associative array using SimpleXML
How do I convert SOAP response like this to php array using SimpleXML? <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="...
0 votes
1 answer
2k views
PHP Parsing XML response with simplexml_load_string()
I'm running into a parse error for some reason. I've narrowed it down to the "what", but not the "why". Here's my testing script: <?php $xml_string = '<?xml version="1.0" encoding="utf-8"?>...
0 votes
1 answer
2k views
Parse XML multiple namespaces with php SimpleXML
There are a plenty answers to my question for example Parse XML namespaces with php SimpleXML But i cant understand how to adjust the code to read value in my case? i have a namespace m: inside a ...
0 votes
1 answer
1k views
Curl and htmlentities stripping XML tags
So i'm working on a php script which passes information to a server using Curl and the POST method and then takes back information from that server in the form of XML.I then want to take this ...
0 votes
1 answer
1k views
How to parse SOAP response from PayPal API with PHP?
I am trying to parse a SOAP response for a PayPal integration in PHP, and I have read through the following posting: parse an XML with SimpleXML which has multiple namespaces which gives great ...
0 votes
2 answers
594 views
Extract data from cURL response keeps returning no value
What am I trying to reach: I am trying to get a reponse from a webserver. With this response i have some data that I need to extract. I already have reached the point to receive a response from the ...
0 votes
2 answers
417 views
php getting data from XML file
I'm doing a SOAP call and get data returned in XML. The returning XML has a markup from which I don't know how to handle. I only need all <web_get_debiteuren>. I thought of using php ...