All of the components of an XML document are subclasses of Node.
None
for the document node.
The value is always a Node object or None
. For
Element nodes, this will be the parent element, except for the
root element, in which case it will be the Document object.
For Attr nodes, this is always None
.
This is a read-only attribute.
None
for this attribute.
This is a read-only attribute.
None
.
This is a read-only attribute.
None
.
This is a read-only attribute.
None
.
This is a read-only attribute.
None
.
This is a read-only attribute.
None
None
. This is a read-only attribute.
None
. This is a read-only attribute.
None
.
Note: This is based on a proposed DOM Level 3 API which is still in the ``working draft'' stage, but this particular interface appears uncontroversial. Changes from the W3C will not necessarily affect this method in the Python DOM interface (though any new W3C API for this would also be supported).
See About this document... for information on suggesting changes.