Revision 4027
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/xml_dom.py | ||
---|---|---|
186 | 186 |
assert is_elem(node) |
187 | 187 |
node.appendChild(node.ownerDocument.createTextNode(value)) |
188 | 188 |
elif value_node_ != None: |
189 |
if is_elem(node): remove(value_node_) |
|
189 |
if is_elem(node) or is_text_node(node): remove(value_node_)
|
|
190 | 190 |
else: node.nodeValue = value |
191 | 191 |
|
192 | 192 |
class NodeTextEntryIter: |
Also available in: Unified diff
xml_dom.py: set_value(): Support setting the value of a text node to None, by removing it