Public Member Functions | |
toXml (self, level, f) | |
Generate XML output of the node. | |
![]() | |
__init__ (self, data) | |
__str__ (self) | |
__unicode__ (self) | |
![]() | |
appendChild (self, node) | |
Raises an error. | |
hasChildNodes (self) | |
insertBefore (self, newChild, refChild) | |
Raises an error. | |
removeChild (self, oldChild) | |
Raises an error. | |
replaceChild (self, newChild, oldChild) | |
Raises an error. | |
![]() | |
hasChildNodes (self) | |
Tells whether this element has any children; text nodes, subelements whatever. | |
insertBefore (self, newChild, refChild) | |
Inserts the node newChild before the existing child node refChild. | |
appendChild (self, newChild) | |
Adds the node newChild to the end of the list of children of this node. | |
removeChild (self, oldChild) | |
Removes the child node indicated by oldChild from the list of children, and returns it. | |
Static Public Attributes | |
nodeType = Node.CDATA_SECTION_NODE | |
![]() | |
nodeType = Node.TEXT_NODE | |
str | tagName = "Text" |
![]() | |
attributes = None | |
childNodes = EmptyNodeList() | |
firstChild = None | |
lastChild = None | |
![]() | |
parentNode = None | |
nextSibling = None | |
previousSibling = None | |
doc | |
Additional Inherited Members | |
![]() | |
data | |
![]() | |
tagName | |
The DOM does not clearly specify what to return in this case. | |
![]() | |
_get_firstChild (self) | |
_get_lastChild (self) | |
![]() | |
_get_childNodes (self) | |
_get_firstChild (self) | |
_get_lastChild (self) | |
Definition at line 344 of file element.py.
odf.element.CDATASection.toXml | ( | self, | |
level, | |||
f | |||
) |
Generate XML output of the node.
If the text contains "]]>", then escape it by going out of CDATA mode (]]>), then write the string and then go into CDATA mode again. ()
Reimplemented from odf.element.Text.
Definition at line 351 of file element.py.
|
static |
Definition at line 345 of file element.py.