Top "Simplexml" questions

A PHP extension shipped with the main source tree.

'Serialization of 'SimpleXMLElement' is not allowed when saving in Wordpress post_meta

I am working on an amazon affiliate wordpress page. For that I am using the aws_signed_request function to …

php wordpress amazon-web-services simplexml
Simplexml_load_string($string) returns an empty object but $string contains xml? code below

I retrieve some information using cURL in xml format. .... $xml = curl_exec($ch); $data = simplexml_load_string($xml); print_r($…

php xml simplexml
Getting encoding="UTF-8" standalone="yes" using PHP asXML and SimpleXMLElement

I am using following code to get an XML file when a php page is called: i.e. when you …

php xml simplexml
Remove namespace from XML using PHP

I have an XML document that looks like this: <Data xmlns="http://www.domain.com/schema/data" xmlns:dmd="…

php simplexml xml-namespaces
SimpleXML get element content based on attribute value

I'm trying to access the content of an element based on the value of an attribute. With PHP SimpleXML. I've …

php css-selectors simplexml
XPath with multiple contains on different elements

Is it possible to have XPath expression with multiple contains of different element values? XML <data> <person&…

php xml xpath simplexml contains
How to append to a XML file with PHP preferably with SimpleXML

I have a XML file which looks like this: <?xml version="1.0" encoding="utf-8"?> <data> <config&…

php xml insert simplexml
edit XML with simpleXML

How can I edit the value's in a xml file using simpleXML ? I know how to create the file, but …

php xml simplexml
How to convert SimpleXMLObject into PHP Array?

Consider the following code: $string = '<device> <id>1234</id> <label>118</label&…

php arrays simplexml
How can I set text value of SimpleXmlElement without using its parent?

I want to set text of some node found by xpath() <?php $args = new SimpleXmlElement( <<<XML &…

php xml xpath simplexml