From 45a8a928ab6094f50d6745db1bd617d112fd6c72 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 14 Nov 2011 22:36:10 -0500 Subject: [PATCH] added append() and iterchildern() to XML class --- sfa/util/xml.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sfa/util/xml.py b/sfa/util/xml.py index dece35b1..9d5f52c4 100755 --- a/sfa/util/xml.py +++ b/sfa/util/xml.py @@ -217,7 +217,6 @@ class XML: node = self.root node.remove_attribute(name) - def add_element(self, name, **kwds): """ Wrapper around etree.SubElement(). Adds an element to @@ -268,6 +267,12 @@ class XML: attrs['child_nodes'] = list(elem) return attrs + def append(self, elem): + return self.root.append(elem) + + def iterchildren(self): + return self.root.iterchildren() + def merge(self, in_xml): pass -- 2.43.0