Top "Simplexml" questions

A PHP extension shipped with the main source tree.

How to convert array to SimpleXML

How can I convert an array to a SimpleXML object in PHP?

php xml arrays simplexml
Get value from SimpleXMLElement Object

I have something like this: $url = "http://ws.geonames.org/findNearbyPostalCodes?country=pl&placename="; $url .= rawurlencode($city[$i]); $xml = …

php simplexml
Error: "Input is not proper UTF-8, indicate encoding !" using PHP's simplexml_load_string

I'm getting the error: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xED 0x6E 0x2C 0x20 …

php xml encoding character-encoding simplexml
PHP 7 simpleXML

I'm testing PHP7, and have a weird issue after a recent update. SimpleXML should be enabled by default, and my …

php simplexml php-7
SimpleXml to string

Is there any function that makes string from PHP SimpleXMLElement?

php xml simplexml
Accessing @attribute from SimpleXML

I am having a problem accessing the @attribute section of my SimpleXML object. When I var_dump the entire object, …

php xml simplexml
How to use XMLReader in PHP?

I have the following XML file, the file is rather large and i haven't been able to get simplexml to …

php xml parsing simplexml xmlreader
Using SimpleXML to create an XML object from scratch

Is it possible to use PHP's SimpleXML functions to create an XML object from scratch? Looking through the function list, …

php xml simplexml
'xmlParseEntityRef: no name' warnings while loading xml into a php file

I am reading an xml in php using simplexml_load_file. However while trying to load the xml it displays …

php xml simplexml
Remove a child with a specific attribute, in SimpleXML for PHP

I have several identical elements with different attributes that I'm accessing with SimpleXML: <data> <seg id="A1"/&…

php xml dom simplexml