QDomDocumentType 类

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

头: #include <QDomDocumentType>
qmake: QT += xml
继承: QDomNode

注意: 此类的所有函数 可重入 .

公共函数

QDomDocumentType ()
QDomDocumentType (const QDomDocumentType & n )
QDomNamedNodeMap entities () const
QString internalSubset () const
QString name () const
QDomNode::NodeType nodeType () const
QDomNamedNodeMap notations () const
QString publicId () const
QString systemId () const
QDomDocumentType & operator= (const QDomDocumentType & n )

详细描述

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

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 () returns the name of the document type as specified in the <!DOCTYPE name> tag. This class also provides the publicId (), systemId () 和 internalSubset () 函数。

另请参阅 QDomDocument .

成员函数文档编制

QDomDocumentType:: QDomDocumentType ()

创建空 QDomDocumentType 对象。

QDomDocumentType:: QDomDocumentType (const QDomDocumentType & n )

构造副本为 n .

拷贝数据是共享的 (浅拷贝):修改一个节点也将改变另一节点。若想要制作深度副本,使用 cloneNode ().

QDomNamedNodeMap QDomDocumentType:: entities () const

Returns a map of all entities described in the DTD.

QString QDomDocumentType:: internalSubset () const

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

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

QString QDomDocumentType:: name () const

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

另请参阅 nodeName ().

QDomNode::NodeType QDomDocumentType:: nodeType () const

返回 DocumentTypeNode .

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

QDomNamedNodeMap QDomDocumentType:: notations () const

Returns a map of all notations described in the DTD.

QString QDomDocumentType:: publicId () const

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 () const

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

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

QDomDocumentType &QDomDocumentType:: operator= (const QDomDocumentType & n )

赋值 n to this document type.

拷贝数据是共享的 (浅拷贝):修改一个节点也将改变另一节点。若想要制作深度副本,使用 cloneNode ().