在线文档教程
PHP
HTML

DOMDocumentType (class)

The DOMDocumentType class

Introduction

(PHP 5, PHP 7)

每个DOMDocument都有一个doctype属性,其值是一个NULL或一个DOMDocumentType对象。

课程简介

DOMDocumentType extends DOMNode {

/ *属性* /

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 )

}

属性

publicId

外部子集的公共标识符。

systemId

外部子集的系统标识符。这可能是绝对URI或不是。

name

DTD的名称; 即紧跟在DOCTYPE关键字后面的名称。

entities

一个DOMNamedNodeMap,包含在DTD中声明的一般实体,包括外部和内部实体。

notations

包含在DTD中声明的符号的DOMNamedNodeMap。

internalSubset

内部子集作为字符串,如果没有则为null。这不包含分隔方括号。

← DOMDocumentFragment::appendXML

DOMElement →