返回介绍

QDomDocumentType Class

发布于 2019-10-04 14:59:46 字数 3989 浏览 922 评论 0 收藏 0

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

#include <qdom.h>

Inherits QDomNode.

List of all member functions.

Public Members

  • QDomDocumentType ()
  • QDomDocumentType ( constQDomDocumentType&n )
  • QDomDocumentType & operator= ( constQDomDocumentType&n )
  • ~QDomDocumentType ()
  • virtual QString name () const
  • virtual QDomNamedNodeMap entities () const
  • virtual QDomNamedNodeMap notations () const
  • virtual QString publicId () const
  • virtual QString systemId () const
  • virtual QString internalSubset () const
  • virtual QDomNode::NodeType nodeType () const
  • virtual bool isDocumentType () const

Detailed Description

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() and 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() and internalSubset() functions.

See also QDomDocument and XML.


Member Function Documentation

QDomDocumentType::QDomDocumentType ()

Creates an empty QDomDocumentType object.

QDomDocumentType::QDomDocumentType ( constQDomDocumentType&n )

Constructs a copy of 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().

QDomDocumentType::~QDomDocumentType ()

Destroys the object and frees its resources.

QDomNamedNodeMap QDomDocumentType::entities () const [virtual]

Returns a map of all entities described in the DTD.

QString QDomDocumentType::internalSubset () const [virtual]

Returns the internal subset of the document type, if there is any. Otherwise this function returns QString::null.

See also publicId() and systemId().

bool QDomDocumentType::isDocumentType () const [virtual]

This function overloads QDomNode::isDocumentType().

See also nodeType() and QDomNode::toDocumentType().

Reimplemented from QDomNode.

QString QDomDocumentType::name () const [virtual]

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

See also nodeName().

QDomNode::NodeType QDomDocumentType::nodeType () const [virtual]

Returns DocumentTypeNode.

See also isDocumentType() and QDomNode::toDocumentType().

Reimplemented from QDomNode.

QDomNamedNodeMap QDomDocumentType::notations () const [virtual]

Returns a map of all notations described in the DTD.

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

Assigns n to this document type.

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

QString QDomDocumentType::publicId () const [virtual]

Returns the public identifier of the external DTD subset, if there is any. Otherwise this function returns QString::null.

See also systemId(), internalSubset() and QDomImplementation::createDocumentType().

QString QDomDocumentType::systemId () const [virtual]

Returns the system identifier of the external DTD subset, if there is any. Otherwise this function returns QString::null.

See also publicId(), internalSubset() and QDomImplementation::createDocumentType().

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文