Revision 4302
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/xml_func.py | ||
---|---|---|
88 | 88 |
if xml_dom.is_empty(child): xml_dom.remove(child) |
89 | 89 |
|
90 | 90 |
def passthru(node): |
91 |
'''Passes through single child node''' |
|
91 |
'''Passes through single child node. First prunes the node.''' |
|
92 |
prune(node) |
|
92 | 93 |
children = list(xml_dom.NodeEntryIter(node)) |
93 | 94 |
if len(children) == 1: xml_dom.replace(node, children[0][1]) |
94 | 95 |
|
Also available in: Unified diff
xml_func.py: passthru(): First prune the node