|
The DOMDocument classIntroductionRepresents an entire HTML or XML document; serves as the root of the document tree. Class synopsis
DOMDocument
extends
DOMNode
implements
DOMParentNode
/* Properties */
public
readonly
DOMDocumentTypenull
$doctype;
public
readonly
DOMImplementation
$implementation;
public
readonly
DOMElementnull
$documentElement;
public
readonly
stringnull
$actualEncoding;
public
stringnull
$encoding;
public
readonly
stringnull
$xmlEncoding;
public
bool
$standalone;
public
bool
$xmlStandalone;
public
stringnull
$version;
public
stringnull
$xmlVersion;
public
bool
$strictErrorChecking;
public
stringnull
$documentURI;
public
readonly
mixed
$config;
public
bool
$formatOutput;
public
bool
$validateOnParse;
public
bool
$resolveExternals;
public
bool
$preserveWhiteSpace;
public
bool
$recover;
public
bool
$substituteEntities;
public
readonly
DOMElementnull
$firstElementChild;
public
readonly
DOMElementnull
$lastElementChild;
public
readonly
int
$childElementCount;
/* Inherited properties */
public
readonly
string
$nodeName;
public
stringnull
$nodeValue;
public
readonly
int
$nodeType;
public
readonly
DOMNodenull
$parentNode;
public
readonly
DOMElementnull
$parentElement;
public
readonly
DOMNodeList
$childNodes;
public
readonly
DOMNodenull
$firstChild;
public
readonly
DOMNodenull
$lastChild;
public
readonly
DOMNodenull
$previousSibling;
public
readonly
DOMNodenull
$nextSibling;
public
readonly
DOMNamedNodeMapnull
$attributes;
public
readonly
bool
$isConnected;
public
readonly
DOMDocumentnull
$ownerDocument;
public
readonly
stringnull
$namespaceURI;
public
string
$prefix;
public
readonly
stringnull
$localName;
public
readonly
stringnull
$baseURI;
public
string
$textContent;
/* Methods */
public DOMDocument::__construct(string
$version = "1.0", string $encoding = "")public DOMNodefalse DOMDocument::adoptNode(DOMNode
$node )public void DOMDocument::append(DOMNodestring
...$nodes )public DOMAttrfalse DOMDocument::createAttribute(string
$localName )public DOMAttrfalse DOMDocument::createAttributeNS(stringnull
$namespace , string $qualifiedName )public DOMCdataSectionfalse DOMDocument::createCDATASection(string
$data )public DOMComment DOMDocument::createComment(string
$data )public DOMDocumentFragment DOMDocument::createDocumentFragment()
public DOMElementfalse DOMDocument::createElement(string
$localName , string $value = "")public DOMElementfalse DOMDocument::createElementNS(stringnull
$namespace , string $qualifiedName , string $value = "")public DOMEntityReferencefalse DOMDocument::createEntityReference(string
$name )public DOMProcessingInstructionfalse DOMDocument::createProcessingInstruction(string
$target , string $data = "")public DOMText DOMDocument::createTextNode(string
$data )public DOMElementnull DOMDocument::getElementById(string
$elementId )public DOMNodeList DOMDocument::getElementsByTagName(string
$qualifiedName )public DOMNodeList DOMDocument::getElementsByTagNameNS(stringnull
$namespace , string $localName )public DOMNodefalse DOMDocument::importNode(DOMNode
$node , bool $deep = false )public bool DOMDocument::load(string
$filename , int $options = 0)public bool DOMDocument::loadHTML(string
$source , int $options = 0)public bool DOMDocument::loadHTMLFile(string
$filename , int $options = 0)public bool DOMDocument::loadXML(string
$source , int $options = 0)public void DOMDocument::normalizeDocument()
public void DOMDocument::prepend(DOMNodestring
...$nodes )public bool DOMDocument::registerNodeClass(string
$baseClass , stringnull $extendedClass )public bool DOMDocument::relaxNGValidate(string
$filename )public bool DOMDocument::relaxNGValidateSource(string
$source )public void DOMDocument::replaceChildren(DOMNodestring
...$nodes )public intfalse DOMDocument::save(string
$filename , int $options = 0)public stringfalse DOMDocument::saveHTML(DOMNodenull
$node = null )public intfalse DOMDocument::saveHTMLFile(string
$filename )public stringfalse DOMDocument::saveXML(DOMNodenull
$node = null , int $options = 0)public bool DOMDocument::schemaValidate(string
$filename , int $flags = 0)public bool DOMDocument::schemaValidateSource(string
$source , int $flags = 0)public bool DOMDocument::validate()
public intfalse DOMDocument::xinclude(int
$options = 0)/* Inherited methods */
public DOMNodefalse appendChild(DOMNode
$node )public stringfalse C14N(
bool $exclusive = false ,bool $withComments = false ,arraynull $xpath = null ,arraynull $nsPrefixes = null ) public intfalse C14NFile(
string $uri ,bool $exclusive = false ,bool $withComments = false ,arraynull $xpath = null ,arraynull $nsPrefixes = null ) public DOMNodefalse cloneNode(bool
$deep = false )public bool contains(DOMNodeDOMNameSpaceNodenull
$other )public int getLineNo()
public stringnull getNodePath()
public DOMNode getRootNode(arraynull
$options = null )public bool hasAttributes()
public bool hasChildNodes()
public DOMNodefalse insertBefore(DOMNode
$node , DOMNodenull $child = null )public bool isDefaultNamespace(string
$namespace )public bool isEqualNode(DOMNodenull
$otherNode )public bool isSameNode(DOMNode
$otherNode )public bool isSupported(string
$feature , string $version )public stringnull lookupNamespaceURI(stringnull
$prefix )public stringnull lookupPrefix(string
$namespace )public void normalize()
public DOMNodefalse removeChild(DOMNode
$child )public DOMNodefalse replaceChild(DOMNode
$node , DOMNode $child )Properties
Changelog
Notes
|