Revision 1016
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xml_dom.py | ||
---|---|---|
121 | 121 |
|
122 | 122 |
def parent(node): |
123 | 123 |
'''See NodeParentIter for special treatment of root node''' |
124 |
try: return NodeParentIter(root).next()
|
|
124 |
try: return NodeParentIter(node).next()
|
|
125 | 125 |
except StopIteration: return None |
126 | 126 |
|
127 | 127 |
##### Element nodes containing text |
Also available in: Unified diff
xml_dom.py: Fixed bug in parent() where incorrect variable name was used