PySide.QtXml.QDomComment class represents an XML comment.
在剖析 XML 中的注释,譬如这:
<!-- this is a comment -->
is represented by PySide.QtXml.QDomComment objects in the parsed Dom tree.
有关文档对象模型的进一步信息,见 http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/ 。有关 DOM 实现的更一般介绍,见 PySide.QtXml.QDomDocument 文档编制。
| 参数: | x – PySide.QtXml.QDomComment |
|---|
构造空注释。要构造带内容的注释,使用 QDomDocument.createComment() 函数。
构造副本为 x .
拷贝数据是共享的 (浅拷贝):修改一个节点也将改变另一节点。若想要制作深度副本,使用 PySide.QtXml.QDomNode.cloneNode() .