class documentation
This is an evil and horrible speed hack. Basically, if you have a big chunk of XML that you want to insert into the DOM, but you don't want to incur the cost of parsing it, you can construct one of these and insert it into the DOM. This will most certainly only work with microdom as the API for converting nodes to xml is different in every DOM implementation.
This could be improved by making this class a Lazy parser, so if you inserted this into the DOM and then later actually tried to mutate this node, it would be parsed then.
Method | writexml |
Undocumented |
Inherited from Text
:
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | clone |
Undocumented |
Method | is |
Compare this text to text. If the underlying values and the raw flag are the same, return True, otherwise return False. |
Instance Variable | raw |
Undocumented |
Inherited from CharacterData
(via Text
):
Method | is |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | node |
Undocumented |
Instance Variable | value |
Undocumented |
Inherited from Node
(via Text
, CharacterData
):
Method | append |
Make the given Node the last child of this node. |
Method | first |
Undocumented |
Method | has |
Undocumented |
Method | insert |
Make the given Node new a child of this node which comes before the Node ref. |
Method | last |
Undocumented |
Method | remove |
Remove the given Node from this node's children. |
Method | replace |
Replace a Node which is already a child of this node with a different node. |
Method | toprettyxml |
Undocumented |
Method | toxml |
Undocumented |
Method | writeprettyxml |
Undocumented |
Class Variable | node |
Undocumented |
Instance Variable | child |
Undocumented |
Instance Variable | parent |
Undocumented |
def writexml(self, writer, indent='', addindent='', newl='', strip=0, nsprefixes=None, namespace=None):
(source)
¶
overrides
twisted.web.microdom.Text.writexml
Undocumented