Version: current

# Class DOMDocument

  DOMNode
  DOMDocument

PHP Extension: Dom
Documented at php.net

## Methods summary

`public` | # `createElement( mixed $tagName, mixed $value )`
`public` | # `createDocumentFragment( )`
`public` | # `createTextNode( mixed $data )`
`public` | # `createComment( mixed $data )`
`public` | # `createCDATASection( mixed $data )`
`public` | # `createProcessingInstruction( mixed $target, mixed $data )`
`public` | # `createAttribute( mixed $name )`
`public` | # `createEntityReference( mixed $name )`
`public` | # `getElementsByTagName( mixed $tagName )`
`public` | # `importNode( `DOMNode` $importedNode, mixed $deep )`
`public` | # `createElementNS( mixed $namespaceURI, mixed $qualifiedName, mixed $value )`
`public` | # `createAttributeNS( mixed $namespaceURI, mixed $qualifiedName )`
`public` | # `getElementsByTagNameNS( mixed $namespaceURI, mixed $localName )`
`public` | # `getElementById( mixed $elementId )`
`public` | # `adoptNode( `DOMNode` $source )`
`public` | # `normalizeDocument( )`
`public` | # `renameNode( `DOMNode` $node, mixed $namespaceURI, mixed $qualifiedName )`
`public` | # `load( mixed $source, mixed $options )`
`public` | # `save( mixed $file )`
`public` | # `loadXML( mixed $source, mixed $options )`
`public` | # `saveXML( `DOMNode` $node )`
`public` | # `__construct( mixed $version, mixed $encoding )`
`public` | # `validate( )`
`public` | # `xinclude( mixed $options )`
`public` | # `loadHTML( mixed $source, mixed $options )`
`public` | # `loadHTMLFile( mixed $source, mixed $options )`
`public` | # `saveHTML( )`
`public` | # `saveHTMLFile( mixed $file )`
`public` | # `schemaValidate( mixed $filename )`
`public` | # `schemaValidateSource( mixed $source )`
`public` | # `relaxNGValidate( mixed $filename )`
`public` | # `relaxNGValidateSource( mixed $source )`
`public` | # `registerNodeClass( mixed $baseClass, mixed $extendedClass )`

### Methods inherited from DOMNode

`C14N()`, `C14NFile()`, `appendChild()`, `cloneNode()`, `compareDocumentPosition()`, `getFeature()`, `getLineNo()`, `getNodePath()`, `getUserData()`, `hasAttributes()`, `hasChildNodes()`, `insertBefore()`, `isDefaultNamespace()`, `isEqualNode()`, `isSameNode()`, `isSupported()`, `lookupNamespaceUri()`, `lookupPrefix()`, `normalize()`, `removeChild()`, `replaceChild()`, `setUserData()`

### Magic methods summary

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -