Top "Simplexml" questions

A PHP extension shipped with the main source tree.

simplexml_load_string() will not read soap response with "soap:" in the tags

I know this may be a newbie question, but please humor me. When reading an xml string with "soap:" in …

php xml soap curl simplexml
PHP 7.2 and modules 'dom', 'mbstring', and 'simplexml'

I installed PHP 7.2 on my server and everything works fine except these three issues: I face these problems: The PHP …

php dom simplexml php-7.2 mbstring
SimpleXML: append one tree to another

I have two XML trees and would like to add one tree as a leaf to the other one. Apparently: $…

php simplexml
SimpleXMLElement cannot be found when working with namespaces

I'm trying to create a Widget in Wordpress, and I'm running into an issue creating a SimpleXMLElement object. Here is …

php wordpress class namespaces simplexml
Checking if an object attribute is set - SimpleXML

I have some XML I am using PHP's SimpleXML class with and I have elements within the XML such as: &…

php xml object simplexml
PHP SimpleXML, how to set attributes?

if you've got something like, <hello id="1" name="myName1"> <anotherTag title="Hello"> </anotherTag> </…

php attributes set simplexml
adding a namespace when using SimpleXMLElement

This is what I am after <!-- language: lang-xml --> <ws:Test> <ws:somename2>…

php simplexml
PHP SimpleXML doesn't preserve line breaks in XML attributes

I have to parse externally provided XML that has attributes with line breaks in them. Using SimpleXML, the line breaks …

php xml simplexml
Get root node of XML doc using simplexml

Using simplexml_load_string() how do I get "ForgotPassword" from the following XML? <?xml version="1.0" encoding="utf-8"?> <…

php simplexml
PHP Catching a SimpleXMLElement parse error

I have a script that parses some XML (adf) stuff. Sometimes we receive broken XML data (ie- syntax, no ending …

xml simplexml php