 |
 |
 |
Python库参考手册(Python Library Reference) |
 |
 |
7.2.2.10 Text and CDATASection Objects
The Text interface represents text in the XML document. If
the parser and DOM implementation support the DOM's XML extension,
portions of the text enclosed in CDATA marked sections are stored in
CDATASection objects. These two interfaces are identical, but
provide different values for the nodeType attribute.
These interfaces extend the Node interface. They cannot have
child nodes.
- data
-
The content of the text node as a string.
Note:
The use of a CDATASection node does not indicate that the
node represents a complete CDATA marked section, only that the
content of the node was part of a CDATA section. A single CDATA
section may be represented by more than one node in the document
tree. There is no way to determine whether two adjacent
CDATASection nodes represent different CDATA marked
sections.
 |
 |
 |
Python库参考手册(Python Library Reference) |
 |
 |
版本 2.3.3, 文件最后更新时间 译文最后修改: 三月 22, 2004.