Revision 2431
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/xml_dom.py | ||
---|---|---|
24 | 24 |
if sep != '': return base |
25 | 25 |
else: return name |
26 | 26 |
|
27 |
##### Nodes |
|
28 |
|
|
29 |
def is_node(value): return isinstance(value, Node) |
|
30 |
|
|
27 | 31 |
##### Replacing a node |
28 | 32 |
|
29 | 33 |
def remove(node): node.parentNode.removeChild(node) |
Also available in: Unified diff
xml_dom.py: Added is_node()