1.2.1501. ext/dom¶
Extension Document Object Model.
The DOM extension allows the manipulation of XML documents through the DOM API with PHP.
<?php
$dom = new DOMDocument('1.0', 'utf-8');
$element = $dom->createElement('test', 'This is the root element!');
// We insert the new element as root (child of the document)
$dom->appendChild($element);
echo $dom->saveXML();
?>
See also Document Object Model.
1.2.1501.1. Specs¶
Short name |
Extensions/Extdom |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |