The DOMDocumentType class

(PHP 5, PHP 7, PHP 8)

Introduction

Each DOMDocument has a doctype attribute whose value is either null or a DOMDocumentType object.

Class synopsis

class DOMDocumentType extends DOMNode {
/* Inherited constants */
/* Properties */
public readonly string $name ;
public readonly DOMNamedNodeMap $entities ;
public readonly DOMNamedNodeMap $notations ;
public readonly string $publicId ;
public readonly string $systemId ;
public readonly ?string $internalSubset ;
/* Inherited properties */
public readonly string $nodeName ;
public ?string $nodeValue ;
public readonly int $nodeType ;
public readonly ?DOMNode $parentNode ;
public readonly ?DOMElement $parentElement ;
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 bool $isConnected ;
public readonly ?DOMDocument $ownerDocument ;
public readonly ?string $namespaceURI ;
public string $prefix ;
public readonly ?string $localName ;
public readonly ?string $baseURI ;
/* Inherited methods */
public DOMNode::C14N (
bool $exclusive = false ,
bool $withComments = false ,
? array $xpath = null ,
? array $nsPrefixes = null
): string |false
public DOMNode::C14NFile (
string $uri,
bool $exclusive = false ,
bool $withComments = false ,
? array $xpath = null ,
? array $nsPrefixes = null
): int |false
public DOMNode::getRootNode (? array $options = null ): DOMNode
public DOMNode::insertBefore (DOMNode $node, ? DOMNode $child = null ): DOMNode |false
public DOMNode::isEqualNode (? DOMNode $otherNode): bool
public DOMNode::isSameNode (DOMNode $otherNode): bool
public DOMNode::isSupported (string $feature, string $version): bool
public DOMNode::lookupPrefix (string $namespace): ? string
}

Properties

publicId

The public identifier of the external subset.

systemId

The system identifier of the external subset. This may be an absolute URI or not.

name

The name of DTD; i.e., the name immediately following the DOCTYPE keyword.

entities

A DOMNamedNodeMap containing the general entities, both external and internal, declared in the DTD.

notations

A DOMNamedNodeMap containing the notations declared in the DTD.

internalSubset

The internal subset as a string, or null if there is none. This does not contain the delimiting square brackets.

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /