Top "Domdocument" questions

DOMDocument refers to a class encapsulating the DOM (Document Object Model).

What's the difference between PHP's DOM and SimpleXML extensions?

I'm failing to comprehend why do we need 2 XML parsers in PHP. Can someone explain the difference between those two?

php simplexml domdocument
Object of class DOMElement could not be converted to string

I try to parse an XML rss flux. Actually, an error is thrown: Catchable fatal error: Object of class DOMElement …

php xml-parsing domdocument
Loop over DOMDocument

I am following the suggestion from this question Robust, Mature HTML Parser for PHP, about parsing html that may be …

php loops domdocument
PHP DomDocument failing to handle utf-8 characters (☆)

The webserver is serving responses with utf-8 encoding, all files are saved with utf-8 encoding, and everything I know of …

php utf-8 domdocument
Retrieve elements with xpath and DOMDocument

I have a list of ads in the html code below. What I need is a PHP loop to get …

php xpath domdocument
Change tag attribute value with PHP DOMDocument

I want to change the value of the attribute of a tag with PHP DOMDocument. For example, say we have …

php dom attributes tags domdocument
Convert org.w3c.dom.Node into Document

I have a Node from one Document. I want to take that Node and turn it into the root node …

java domdocument xmlnode
PHP DOMDocument missing

I am getting an odd error when running $dom = new DOMDocument("1.0", "utf-8");: Warning: require_once(classes/DOMDocument.class.php) [function.…

php domdocument require
How get first level of dom elements by Domdocument?

How get first level of dom elements by Domdocument PHP? Example with code that not works - tooken from Q&…

php xpath domdocument
Indentation with DOMDocument in PHP

I'm using DOMDocument to generate a new XML file and I would like for the output of the file to …

php xml whitespace indentation domdocument