DOM_DocumentType

External objects

Properties

Property Description
$dtdname The name of the DTD
$internalsubset The internal subset as a string (read only)
$localname The local part of the qualified name of the node (read only)
$namespaceuri The namespace URI of the node, or empty if it is unspecified (read only)
$nodename The name of the node (not assignable)
$nodetype The type of the node (one of the kXMLNode... constants)
$prefix The namespace prefix of the node, or empty if it is unspecified
$publicid The public identifier of the external subset (read only)
$systemid The system identifier of the external subset (read only)

Methods

Method Description
$clonenode $clonenode(bRecursive) returns a new object which is a copy of the node (and its children if bRecursive is true) (note: cloning an element with bRecursive = false also clones the attributes)
$entities $entities(&cErrorText) returns a named node map object listing the entities in the document type, or NULL and cErrorText if an error occurs
$hasattributes $hasattributes() returns true if the node is an element which has attributes
$haschildnodes $haschildnodes() returns true if the object has children
$issupported $issupported(cFeature,cVersion) returns true if the specified version of the specified feature is supported
$nextsibling $nextsibling() returns the next sibling of this object; NULL if there is no next sibling
$notations $notations(&cErrorText) returns a named node map object listing the notations in the document type, or NULL and cErrorText if an error occurs
$ownerdocument $ownerdocument() returns the owner document containing this object
$parentnode $parentnode() returns the parent object of this object; NULL if there is no parent
$previoussibling $previoussibling() returns the previous sibling of this object; NULL if there is no previous sibling