このページでは

QDomNotation Class

QDomNotation クラスは、XML 表記を表します。詳細...

ヘッダー: #include <QDomNotation>
CMake: find_package(Qt6 REQUIRED COMPONENTS Xml)
target_link_libraries(mytarget PRIVATE Qt6::Xml)
qmake: QT += xml
継承元: QDomNode

注:このクラスのすべての関数は再入可能です。

パブリック関数

QDomNotation()
QDomNotation(const QDomNotation &notation)
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() を取得できます。

Document Object Model の詳細については、Level 1およびLevel 2 Core を参照してください。DOM 実装に関するより一般的な概要については、QDomDocument のドキュメントを参照してください。

メンバ関数のドキュメント

QDomNotation::QDomNotation()

コンストラクタ。

QDomNotation::QDomNotation(const QDomNotation &notation)

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() を使用してください。

© 2026 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.