Top "Domdocument" questions

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

How to get html code of DOMElement node?

I have this html code: <html> <head> ... </head> <body> <div> &…

php dom domdocument dom-node
Get all elements by class name using DOMDocument

This question seems to have been answered numerous times but i still cant seem to put the pieces together. I …

php html-parsing domdocument
DOMDocument::loadHTML(): warning - htmlParseEntityRef: no name in Entity

I have found several similar questions, but so far, none have been able to help me. I am trying to …

php warnings domdocument
PHP get svg tag from SVG file, and show it in HTML in DIV

I want to read an SVG file and get the SVG tag from this file (because I want to show …

php svg domdocument
How to view DOMNodeList object's data in php

when I want to test php array I use the following code print_r($myarray); but know I want to …

php dom xpath domdocument
Get DOM elements by tag name with DOMDocument::loadHTML and getElementsByTagName

Sorry if this is reposted, but I can't wrap my mind around it and I've tried all the available documentation …

php xpath domdocument
Cannot use `document.execCommand('copy');` from developer console

Calling document.execCommand('copy'); from the Chrome developer console returns false every time. Give it a try yourself. Open the …

javascript google-chrome domdocument execcommand
How to insert HTML to PHP DOMNode?

Is there any way I can insert an HTML template to existing DOMNode without content being encoded? I have tried …

php html dom domdocument
PHP DOMDocument getting Attribute of Tag

Hello I have an api response in xml format with a series of items such as this: <item> &…

php parsing dom domdocument xml-namespaces
PHP: DomElement->getAttribute

How can I take all the attribute of an element? Like on my example below I can only get one …

php dom domdocument