QDomDocumentType Class Reference

[ QtXml module]

The QDomDocumentType class is the representation of the DTD in the document tree. 更多...

继承 QDomNode .

方法


详细描述

The QDomDocumentType class is the representation of the DTD in the document tree.

The QDomDocumentType class allows read-only access to some of the data structures in the DTD: it can return a map of all entities () 和 notations (). In addition the function name () 返回 the name of the document type as specified in the <!DOCTYPE name> tag. This class also provides the publicId (), systemId () 和 internalSubset () 函数。


方法文档编制

QDomDocumentType.__init__ ( self )

Creates an empty QDomDocumentType 对象。

QDomDocumentType.__init__ ( self , QDomDocumentType   x )

构造副本为 n .

The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode ().

QDomNamedNodeMap QDomDocumentType.entities ( self )

Returns a map of all entities described in the DTD.

QString QDomDocumentType.internalSubset ( self )

Returns the internal subset of the document type or an empty string if there is no internal subset.

另请参阅 publicId () 和 systemId ().

QString QDomDocumentType.name ( self )

Returns the name of the document type as specified in the <!DOCTYPE name> tag.

另请参阅 nodeName ().

QDomNode.NodeType QDomDocumentType.nodeType ( self )

返回 DocumentTypeNode .

另请参阅 isDocumentType () 和 QDomNode.toDocumentType ().

QDomNamedNodeMap QDomDocumentType.notations ( self )

Returns a map of all notations described in the DTD.

QString QDomDocumentType.publicId ( self )

Returns the public identifier of the external DTD subset or an empty string if there is no public identifier.

另请参阅 systemId (), internalSubset (),和 QDomImplementation.createDocumentType ().

QString QDomDocumentType.systemId ( self )

Returns the system identifier of the external DTD subset or an empty string if there is no system identifier.

另请参阅 publicId (), internalSubset (),和 QDomImplementation.createDocumentType ().