From 98460e2c7611b3e07e7c86618210a209ad752a94 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 14 Nov 2011 21:57:23 -0500 Subject: [PATCH] added getparent() --- sfa/util/xml.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sfa/util/xml.py b/sfa/util/xml.py index 3b194915..dece35b1 100755 --- a/sfa/util/xml.py +++ b/sfa/util/xml.py @@ -61,6 +61,9 @@ class XmlNode: else: self.node.append(elem) + def getparent(self): + return XmlNode(self.node.getparent(), self.namespaces) + def remove_elements(name): """ Removes all occurences of an element from the tree. Start at -- 2.43.0