Revision 4320
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/xml_func.py | ||
---|---|---|
82 | 82 |
|
83 | 83 |
def is_xml_func(node): return is_xml_func_name(node.tagName) |
84 | 84 |
|
85 |
def prune(node): |
|
86 |
'''Removes empty children''' |
|
87 |
for child in xml_dom.NodeElemIter(node): |
|
88 |
if xml_dom.is_empty(child): xml_dom.remove(child) |
|
89 |
|
|
90 | 85 |
def passthru(node): |
91 | 86 |
'''Passes through single child node. First prunes the node.''' |
92 | 87 |
xml_dom.prune_children(node) |
Also available in: Unified diff
xml_func.py: Removed no longer used prune() (use xml_dom.prune_children() instead)