Top "Domdocument" questions

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

PHP XML how to output nice format

Here are the codes: $doc = new DomDocument('1.0'); // create root node $root = $doc->createElement('root'); $root = $doc->…

php xml domdocument
document.getelementbyId will return null if element is not defined?

In my code, I see this: if (document.getElementById('xx') !=null) { //do stuff } if xx element is not defined, will …

javascript domdocument
XPath Query: get attribute href from a tag

I want to use XPath to get the href attribute from an a-tag, but it has two occurrences within the …

html xpath domdocument
Get DIV content from external Website

I want to get a DIV from an external website with pure PHP. External website: http://www.isitdownrightnow.com/youtube.…

php html domdocument
Detect Document Height Change

I'm trying to detect when my document height changes. Once it does, I need to run a few functions to …

javascript domdocument
PHP DOMDocument errors/warnings on html5-tags

I've been attempting to parse HTML5-code so I can set attributes/values within the code, but it seems DOMDocument(…

php html domdocument
Get Element by ClassName with DOMdocument() Method

Here is what I am trying to achieve : retrieve all products on a page and put them into an array. …

php curl domdocument
Sending a 'application/soap+xml' SOAP request using Classic ASP

Any help with this would be appreciated; I've been at it for a few days now. Below is the code …

soap asp-classic msxml domdocument xmlhttprequest
DOMDocument::loadHTML error

I build a script that combines all css on a page together to use it in my cms. It worked …

php html domdocument
How to saveHTML of DOMDocument without HTML wrapper?

I'm the function below, I'm struggling to output the DOMDocument without it appending the XML, HTML, body and p tag …

php serialization domdocument