QDomNotation Class
QDomNotation 类代表一种 XML 符号。更多
头文件: | #include <QDomNotation> |
CMake.QDomNotation 类 | find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) |
qmake: | QT += xml |
继承: | QDomNode |
- 所有成员(包括继承成员)的列表
- QDomNotation 属于XML 类。
注意:该类中的所有函数都是可重入的。
公共函数
QDomNotation() | |
QDomNotation(const QDomNotation ¬ation) | |
QDomNode::NodeType | nodeType() const |
QString | publicId() const |
QString | systemId() const |
QDomNotation & | operator=(const QDomNotation &other) |
详细说明
符号可以通过名称声明未解析实体的格式(参见 XML 1.0 规范的第 4.7 节),或者用于正式声明处理指令目标(参见 XML 1.0 规范的第 2.6 节)。
DOM 不支持编辑符号节点,因此它们是只读的。
符号节点没有父节点。
您可以从符号节点检索publicId() 和systemId()。
有关文档对象模型的更多信息,请参见一级和二级核心。有关 DOM 实现的一般介绍,请参阅QDomDocument 文档。
成员函数文档
QDomNotation::QDomNotation()
构造函数。
QDomNotation::QDomNotation(const QDomNotation ¬ation)
构造notation 的副本。
副本的数据是共享的(浅层副本):修改一个节点也会改变另一个节点。如果要进行深度复制,请使用cloneNode() 。
QDomNode::NodeType QDomNotation::nodeType() const
返回NotationNode
。
QString QDomNotation::publicId() const
返回此符号的公共标识符。
QString QDomNotation::systemId() const
返回该符号的系统标识符。
QDomNotation &QDomNotation::operator=(const QDomNotation &other)
为该 DOM 符号指定other 。
副本的数据是共享的(浅层副本):修改一个节点也会改变另一个节点。如果要进行深度复制,请使用cloneNode()。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.