Top "Domdocument" questions

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

php DOM getAttribute

Alright, so I have an odd case here that I just can't figure out. I want to parse a list …

php dom html-parsing domdocument getattribute
php: using DomDocument whenever I try to write UTF-8 it writes the hexadecimal notation of it

When I try to write UTF-8 Strings into an XML file using DomDocument it actually writes the hexadecimal notation of …

php utf-8 domdocument hebrew
PHP DOMDocument - get html source of BODY

I'm using PHP's DOMDocument to parse and normalize user-submitted HTML using the loadHTML method to parse the content then getting …

php html dom parsing domdocument
PHP DOMDocument error Entity 'nbsp' not defined

I use DOMDocument for editing some HTML files, but some of theme have in their names spaces. So DOMDocument automaticly …

php dom domdocument
Create empty text node in DOM Document

How can we create an empty node in a DOM document without getting java.lang.NullPointerException while writing XML files …

java xml domdocument string transformer
Using DOMDocument, is it possible to get all elements that exists within a certain DOM?

Let's say I have an HTML file with a lot of different elements, each having different attributes. Let's say I …

php parsing html-parsing domdocument
php domdocument read element inner text

I'm new to php so please forgive the simple question: How do I extract the text from an element? <…

php domdocument innertext
How to make HTML5 work with DOMDocument?

I'm attempting to parse HTML code with DOMDocument, do stuff like changes to it, then assemble it back to a …

php html domdocument
Debug a DOMDocument Object in PHP

I'm trying to debug a large and complex DOMDocument object in php. Ideally it'd be nice if I could get …

php domdocument
DOM change element content

How does one change the element content with PHP DOM functions? In depth... I've queried my element, modified attributes and …

php dom domdocument