php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Dom\XMLDocument Class Reference
Inheritance diagram for Dom\XMLDocument:
Dom\Document Dom\Node Dom\ParentNode

Public Member Functions

 createEntityReference (string $name)
 
 validate ()
 
 xinclude (int $options=0)
 
 saveXml (?Node $node=null, int $options=0)
 
 saveXmlFile (string $filename, int $options=0)
 
- Public Member Functions inherited from Dom\Document
 getElementsByTagName (string $qualifiedName)
 
 getElementsByTagNameNS (?string $namespace, string $localName)
 
 createElement (string $localName)
 
 createElementNS (?string $namespace, string $qualifiedName)
 
 createDocumentFragment ()
 
 createTextNode (string $data)
 
 createCDATASection (string $data)
 
 createComment (string $data)
 
 createProcessingInstruction (string $target, string $data)
 
 importNode (?Node $node, bool $deep=false)
 
 adoptNode (Node $node)
 
 createAttribute (string $localName)
 
 createAttributeNS (?string $namespace, string $qualifiedName)
 
 getElementById (string $elementId)
 
 registerNodeClass (string $baseClass, ?string $extendedClass)
 
 schemaValidate (string $filename, int $flags=0)
 
 schemaValidateSource (string $source, int $flags=0)
 
 relaxNgValidate (string $filename)
 
 relaxNgValidateSource (string $source)
 
 append (Node|string ... $nodes)
 
 prepend (Node|string ... $nodes)
 
 replaceChildren (Node|string ... $nodes)
 
 importLegacyNode (\DOMNode $node, bool $deep=false)
 
 querySelector (string $selectors)
 
 querySelectorAll (string $selectors)
 
- Public Member Functions inherited from Dom\Node
 getRootNode (array $options=[])
 
 hasChildNodes ()
 
 normalize ()
 
 cloneNode (bool $deep=false)
 
 isEqualNode (?Node $otherNode)
 
 isSameNode (?Node $otherNode)
 
 compareDocumentPosition (Node $other)
 
 contains (?Node $other)
 
 lookupPrefix (?string $namespace)
 
 lookupNamespaceURI (?string $prefix)
 
 isDefaultNamespace (?string $namespace)
 
 insertBefore (Node $node, ?Node $child)
 
 appendChild (Node $node)
 
 replaceChild (Node $node, Node $child)
 
 removeChild (Node $child)
 
 getLineNo ()
 
 getNodePath ()
 
 C14N (bool $exclusive=false, bool $withComments=false, ?array $xpath=null, ?array $nsPrefixes=null)
 
 C14NFile (string $uri, bool $exclusive=false, bool $withComments=false, ?array $xpath=null, ?array $nsPrefixes=null)
 
 __sleep ()
 
 __wakeup ()
 

Static Public Member Functions

static createEmpty (string $version="1.0", string $encoding="UTF-8")
 
static createFromFile (string $path, int $options=0, ?string $overrideEncoding=null)
 
static createFromString (string $source, int $options=0, ?string $overrideEncoding=null)
 

Data Fields

string $xmlEncoding
 
bool $xmlStandalone
 
string $xmlVersion
 
bool $formatOutput
 
- Data Fields inherited from Dom\Document
Implementation $implementation
 
string $URL
 
string $documentURI
 
string $characterSet
 
string $charset
 
string $inputEncoding
 
DocumentType $doctype
 
Element $documentElement
 
Element $firstElementChild
 
Element $lastElementChild
 
int $childElementCount
 
HTMLElement $body
 
HTMLElement $head
 
string $title
 
- Data Fields inherited from Dom\Node
int $nodeType
 
string $nodeName
 
string $baseURI
 
bool $isConnected
 
Document $ownerDocument
 
Node $parentNode
 
Element $parentElement
 
NodeList $childNodes
 
Node $firstChild
 
Node $lastChild
 
Node $previousSibling
 
Node $nextSibling
 
string $nodeValue
 
string $textContent
 
const int DOCUMENT_POSITION_DISCONNECTED = 0x01
 
const int DOCUMENT_POSITION_PRECEDING = 0x02
 
const int DOCUMENT_POSITION_FOLLOWING = 0x04
 
const int DOCUMENT_POSITION_CONTAINS = 0x08
 
const int DOCUMENT_POSITION_CONTAINED_BY = 0x10
 
const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
 

Detailed Description

Definition at line 2057 of file php_dom.stub.php.

Member Function Documentation

◆ createEmpty()

static Dom\XMLDocument::createEmpty ( string $version = "1.0",
string $encoding = "UTF-8" )
static

Definition at line 2059 of file php_dom.stub.php.

◆ createEntityReference()

Dom\XMLDocument::createEntityReference ( string $name)

@implementation-alias DOMDocument\createEntityReference

Definition at line 2081 of file php_dom.stub.php.

◆ createFromFile()

static Dom\XMLDocument::createFromFile ( string $path,
int $options = 0,
?string $overrideEncoding = null )
static

Definition at line 2061 of file php_dom.stub.php.

◆ createFromString()

static Dom\XMLDocument::createFromString ( string $source,
int $options = 0,
?string $overrideEncoding = null )
static

Definition at line 2063 of file php_dom.stub.php.

◆ saveXml()

Dom\XMLDocument::saveXml ( ?Node $node = null,
int $options = 0 )

Definition at line 2088 of file php_dom.stub.php.

◆ saveXmlFile()

Dom\XMLDocument::saveXmlFile ( string $filename,
int $options = 0 )

@implementation-alias DOMDocument\save

Definition at line 2091 of file php_dom.stub.php.

◆ validate()

Dom\XMLDocument::validate ( )

@implementation-alias DOMDocument\validate

Definition at line 2084 of file php_dom.stub.php.

◆ xinclude()

Dom\XMLDocument::xinclude ( int $options = 0)

Definition at line 2086 of file php_dom.stub.php.

Field Documentation

◆ $formatOutput

bool Dom\XMLDocument::$formatOutput

@virtual

Definition at line 2078 of file php_dom.stub.php.

◆ $xmlEncoding

string Dom\XMLDocument::$xmlEncoding

@readonly @virtual

Definition at line 2069 of file php_dom.stub.php.

◆ $xmlStandalone

bool Dom\XMLDocument::$xmlStandalone

@virtual

Definition at line 2072 of file php_dom.stub.php.

◆ $xmlVersion

string Dom\XMLDocument::$xmlVersion

@virtual

Definition at line 2075 of file php_dom.stub.php.


The documentation for this class was generated from the following file: