Top "Simplexml" questions

A PHP extension shipped with the main source tree.

Call to undefined function simplexml_load_file()

I have php 7.0 running on my ubuntu server. php -m command says: [PHP Modules] calendar Core ctype curl date dom …

ubuntu simplexml php-7
How to add node in existing xml using php simpleXML?

I have a xml file like the bellow, and I need to add a new node with some child node …

php xml simplexml addattribute
How to prevent self closing tag in php simplexml

I want to generate xml by using php simplexml. $xml = new SimpleXMLElement('<xml/>'); $output = $xml->…

php xml simplexml
SimpleXML Reading node with a hyphenated name

I have the following XML: <?xml version="1.0" encoding="UTF-8"?> <gnm:Workbook xmlns:gnm="http://www.gnumeric.org/…

simplexml php
How can I check if a object is an instance of a specific class?

Is there a way to check if an object is an SimpleXMLELement? private function output_roles($role) { foreach ($role as $…

php simplexml
How do I create an empty/blank SimpleXMLElement in PHP?

I am trying to use a PHP document to construct an XML document (for AJAX) using PHP 5's built-in SimpleXMLElement …

php simplexml
PHP SimpleXML get innerXML

I need to get the HTML contents of answer in this bit of XML: <qa> <question>…

php simplexml innerxml
PHP's SimpleXML: How to use colons in names

I am trying to generate an RSS Google Merchant, using SimpleXML. The sample given by Google is: <?xml version="1.0"?&…

php xml rss simplexml
Recursive cast from SimpleXMLObject to Array

I need to recursively cast a PHP SimpleXMLObject to an array. The problem is that each sub element is also …

php casting simplexml
PHP, SimpleXML, decoding entities in CDATA

I'm experiencing the following behavior: $xml_string1 = "<person><name><![CDATA[ Someone&#039;s Name ]]>&…

php xml simplexml cdata libxml2