Document Object ModelTable of Contents
The DOMAttr classIntroductionDOMAttr represents an attribute in the DOMElement object. Class synopsisDOMAttr
class DOMAttr
extends
DOMNode
{
/* Properties */
public
readonly
string
$name
;
public
readonly
DOMElement
$ownerElement
;
public
readonly
bool
$schemaTypeInfo
;
public
readonly
bool
$specified
;
public
string
$value
;
/* Methods */
public __construct
( string
$name
[, string $value
] )
public bool isId
( void
)
/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
The DOMCdataSection classIntroductionThe DOMCdataSection inherits from DOMText for textural representation of CData constructs. Class synopsisDOMCdataSection
class DOMCdataSection
extends
DOMText
{
/* Methods */
public __construct
( string
$value
)/* Inherited methods */
public bool DOMText::isWhitespaceInElementContent
( void
)
public DOMText DOMText::splitText
( int
}$offset
)The DOMCharacterData classIntroductionRepresents nodes with character data. No nodes directly correspond to this class, but other nodes do inherit from it. Class synopsisDOMCharacterData
class DOMCharacterData
extends
DOMNode
{
/* Properties */
public
string
$data
;
readonly
public
int
$length
;
/* Methods */
void appendData
( string
$data
)
void deleteData
( int
$offset
, int $count
)
void insertData
( int
$offset
, string $data
)
void replaceData
( int
$offset
, int $count
, string $data
)
string substringData
( int
$offset
, int $count
)/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
The DOMComment classIntroduction
Represents comment nodes, characters delimited by Class synopsisDOMComment
class DOMComment
extends
DOMCharacterData
{
/* Methods */
public __construct
([ string
$value
] )/* Inherited methods */
void DOMCharacterData::appendData
( string
$data
)
void DOMCharacterData::deleteData
( int
$offset
, int $count
)
void DOMCharacterData::insertData
( int
$offset
, string $data
)
void DOMCharacterData::replaceData
( int
$offset
, int $count
, string $data
)
string DOMCharacterData::substringData
( int
$offset
, int $count
)
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)The DOMDocument classIntroductionRepresents an entire HTML or XML document; serves as the root of the document tree. Class synopsisDOMDocument
class DOMDocument
extends
DOMNode
{
/* Properties */
readonly
public
string
$actualEncoding
;
readonly
public
DOMConfiguration
$config
;
readonly
public
DOMDocumentType
$doctype
;
readonly
public
DOMElement
$documentElement
;
public
string
$documentURI
;
public
string
$encoding
;
public
bool
$formatOutput
;
readonly
public
DOMImplementation
$implementation
;
public
bool
$preserveWhiteSpace
= true
;
public
bool
$recover
;
public
bool
$resolveExternals
;
public
bool
$standalone
;
public
bool
$strictErrorChecking
= true
;
public
bool
$substituteEntities
;
public
bool
$validateOnParse
= false
;
public
string
$version
;
readonly
public
string
$xmlEncoding
;
public
bool
$xmlStandalone
;
public
string
$xmlVersion
;
/* Methods */
public __construct
([ string
$version
[, string $encoding
]] )
public DOMAttr createAttribute
( string
$name
)
public DOMAttr createAttributeNS
( string
$namespaceURI
, string $qualifiedName
)
public DOMCDATASection createCDATASection
( string
$data
)
public DOMComment createComment
( string
$data
)
public DOMDocumentFragment createDocumentFragment
( void
)
public DOMElement createElement
( string
$name
[, string $value
] )
public DOMElement createElementNS
( string
$namespaceURI
, string $qualifiedName
[, string $value
] )
public DOMEntityReference createEntityReference
( string
$name
)
public DOMProcessingInstruction createProcessingInstruction
( string
$target
[, string $data
] )
public DOMText createTextNode
( string
$content
)
public DOMElement getElementById
( string
$elementId
)
public DOMNodeList getElementsByTagName
( string
$name
)
public DOMNodeList getElementsByTagNameNS
( string
$namespaceURI
, string $localName
)
public DOMNode importNode
( DOMNode
$importedNode
[, bool $deep
] )
public mixed load
( string
$filename
[, int $options = 0
] )
public bool loadHTML
( string
$source
[, int $options = 0
] )
public bool loadHTMLFile
( string
$filename
[, int $options = 0
] )
public mixed loadXML
( string
$source
[, int $options = 0
] )
public void normalizeDocument
( void
)
public bool registerNodeClass
( string
$baseclass
, string $extendedclass
)
public bool relaxNGValidate
( string
$filename
)
public bool relaxNGValidateSource
( string
$source
)
public int save
( string
$filename
[, int $options
] )
public string saveHTML
([ DOMNode
$node = NULL
] )
public int saveHTMLFile
( string
$filename
)
public string saveXML
([ DOMNode
$node
[, int $options
]] )
public bool schemaValidate
( string
$filename
[, int $flags
] )
public bool schemaValidateSource
( string
$source
[, int $flags
] )
public bool validate
( void
)
public int xinclude
([ int
$options
] )/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
Notes
The DOMDocumentFragment classClass synopsisDOMDocumentFragment
class DOMDocumentFragment
extends
DOMNode
{
/* Properties */
/* Methods */
public bool appendXML
( string
$data
)/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)The DOMDocumentType classIntroduction
Each DOMDocument has a doctype
attribute whose value is either Class synopsisDOMDocumentType
class DOMDocumentType
extends
DOMNode
{
/* Properties */
readonly
public
string
$publicId
;
readonly
public
string
$systemId
;
readonly
public
string
$name
;
readonly
public
DOMNamedNodeMap
$entities
;
readonly
public
DOMNamedNodeMap
$notations
;
readonly
public
string
$internalSubset
;
/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
The DOMElement classClass synopsisDOMElement
class DOMElement
extends
DOMNode
{
/* Properties */
readonly
public
bool
$schemaTypeInfo
;
readonly
public
string
$tagName
;
/* Methods */
public __construct
( string
$name
[, string $value
[, string $namespaceURI
]] )
public string getAttribute
( string
$name
)
public DOMAttr getAttributeNode
( string
$name
)
public DOMAttr getAttributeNodeNS
( string
$namespaceURI
, string $localName
)
public string getAttributeNS
( string
$namespaceURI
, string $localName
)
public DOMNodeList getElementsByTagName
( string
$name
)
public DOMNodeList getElementsByTagNameNS
( string
$namespaceURI
, string $localName
)
public bool hasAttribute
( string
$name
)
public bool hasAttributeNS
( string
$namespaceURI
, string $localName
)
public bool removeAttribute
( string
$name
)
public bool removeAttributeNode
( DOMAttr
$oldnode
)
public bool removeAttributeNS
( string
$namespaceURI
, string $localName
)
public DOMAttr setAttribute
( string
$name
, string $value
)
public DOMAttr setAttributeNode
( DOMAttr
$attr
)
public DOMAttr setAttributeNodeNS
( DOMAttr
$attr
)
public void setAttributeNS
( string
$namespaceURI
, string $qualifiedName
, string $value
)
public void setIdAttribute
( string
$name
, bool $isId
)
public void setIdAttributeNode
( DOMAttr
$attr
, bool $isId
)
public void setIdAttributeNS
( string
$namespaceURI
, string $localName
, bool $isId
)/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
Notes
The DOMEntity classIntroductionThis interface represents a known entity, either parsed or unparsed, in an XML document. Class synopsisDOMEntity
class DOMEntity
extends
DOMNode
{
/* Properties */
readonly
public
string
$publicId
;
readonly
public
string
$systemId
;
readonly
public
string
$notationName
;
public
string
$actualEncoding
;
readonly
public
string
$encoding
;
readonly
public
string
$version
;
/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
The DOMEntityReference classClass synopsisDOMEntityReference
class DOMEntityReference
extends
DOMNode
{
/* Properties */
/* Methods */
public __construct
( string
$name
)/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)The DOMException classIntroductionDOM operations raise exceptions under particular circumstances, i.e., when an operation is impossible to perform for logical reasons. See also Exceptions. Class synopsisDOMException
class DOMException
extends
Exception
{
/* Properties */
readonly
public
int
$code
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}Properties
The DOMImplementation classIntroductionThe DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model. Class synopsisDOMImplementation
class DOMImplementation
{
/* Properties */
/* Methods */
__construct
( void
)
public DOMDocument createDocument
([ string
$namespaceURI = NULL
[, string $qualifiedName = NULL
[, DOMDocumentType $doctype = NULL
]]] )
public DOMDocumentType createDocumentType
([ string
$qualifiedName = NULL
[, string $publicId = NULL
[, string $systemId = NULL
]]] )
public bool hasFeature
( string
}$feature
, string $version
)The DOMNamedNodeMap classClass synopsisDOMNamedNodeMap
class DOMNamedNodeMap
implements
Traversable
{
/* Properties */
readonly
public
int
$length
;
/* Methods */
DOMNode getNamedItem
( string
$name
)
DOMNode getNamedItemNS
( string
$namespaceURI
, string $localName
)
DOMNode item
( int
}$index
)Properties
The DOMNode classClass synopsisDOMNode
class DOMNode
{
/* Properties */
public
readonly
string
$nodeName
;
public
string
$nodeValue
;
public
readonly
int
$nodeType
;
public
readonly
DOMNode
$parentNode
;
public
readonly
DOMNodeList
$childNodes
;
public
readonly
DOMNode
$firstChild
;
public
readonly
DOMNode
$lastChild
;
public
readonly
DOMNode
$previousSibling
;
public
readonly
DOMNode
$nextSibling
;
public
readonly
DOMNamedNodeMap
$attributes
;
public
readonly
DOMDocument
$ownerDocument
;
public
readonly
string
$namespaceURI
;
public
string
$prefix
;
public
readonly
string
$localName
;
public
readonly
string
$baseURI
;
public
string
$textContent
;
/* Methods */
public DOMNode appendChild
( DOMNode
$newnode
)
public string C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode cloneNode
([ bool
$deep
] )
public int getLineNo
( void
)
public string getNodePath
( void
)
public bool hasAttributes
( void
)
public bool hasChildNodes
( void
)
public DOMNode insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool isDefaultNamespace
( string
$namespaceURI
)
public bool isSameNode
( DOMNode
$node
)
public bool isSupported
( string
$feature
, string $version
)
public string lookupNamespaceURI
( string
$prefix
)
public string lookupPrefix
( string
$namespaceURI
)
public void normalize
( void
)
public DOMNode removeChild
( DOMNode
$oldnode
)
public DOMNode replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
Notes
Changelog
The DOMNodeList classClass synopsisDOMNodeList
class DOMNodeList
implements
Traversable
{
/* Properties */
readonly
public
int
$length
;
/* Methods */
DOMElement DOMNodelist::item
( int
}$index
)Properties
The DOMNotation classClass synopsisDOMNotation
class DOMNotation
extends
DOMNode
{
/* Properties */
readonly
public
string
$publicId
;
readonly
public
string
$systemId
;
/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
The DOMProcessingInstruction classClass synopsisDOMProcessingInstruction
class DOMProcessingInstruction
extends
DOMNode
{
/* Properties */
readonly
public
string
$target
;
public
string
$data
;
/* Methods */
public __construct
( string
$name
[, string $value
] )/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
The DOMText classIntroductionThe DOMText class inherits from DOMCharacterData and represents the textual content of a DOMElement or DOMAttr. Class synopsisDOMText
class DOMText
extends
DOMCharacterData
{
/* Properties */
readonly
public
string
$wholeText
;
/* Methods */
public __construct
([ string
$value
] )
public bool isWhitespaceInElementContent
( void
)
public DOMText splitText
( int
$offset
)/* Inherited methods */
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)
public string DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public int DOMNode::C14NFile
( string
$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] )
public DOMNode DOMNode::cloneNode
([ bool
$deep
] )
public int DOMNode::getLineNo
( void
)
public string DOMNode::getNodePath
( void
)
public bool DOMNode::hasAttributes
( void
)
public bool DOMNode::hasChildNodes
( void
)
public DOMNode DOMNode::insertBefore
( DOMNode
$newnode
[, DOMNode $refnode
] )
public bool DOMNode::isDefaultNamespace
( string
$namespaceURI
)
public bool DOMNode::isSameNode
( DOMNode
$node
)
public bool DOMNode::isSupported
( string
$feature
, string $version
)
public string DOMNode::lookupNamespaceURI
( string
$prefix
)
public string DOMNode::lookupPrefix
( string
$namespaceURI
)
public void DOMNode::normalize
( void
)
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)
public DOMNode DOMNode::replaceChild
( DOMNode
}$newnode
, DOMNode $oldnode
)Properties
The DOMXPath classIntroductionSupports XPath 1.0 Class synopsisDOMXPath
class DOMXPath
{
/* Properties */
public
DOMDocument
$document
;
/* Methods */
public __construct
( DOMDocument
$doc
)
public mixed evaluate
( string
$expression
[, DOMNode $contextnode
[, bool $registerNodeNS = true
]] )
public DOMNodeList query
( string
$expression
[, DOMNode $contextnode
[, bool $registerNodeNS = true
]] )
public bool registerNamespace
( string
$prefix
, string $namespaceURI
)
public void registerPhpFunctions
([ mixed
}$restrict
] )Properties
|