git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2e6ce56
)
added append()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 11 Nov 2011 02:48:07 +0000
(21:48 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 11 Nov 2011 02:48:07 +0000
(21:48 -0500)
sfa/util/xml.py
patch
|
blob
|
history
diff --git
a/sfa/util/xml.py
b/sfa/util/xml.py
index
c8d6e39
..
d2bb6a7
100755
(executable)
--- a/
sfa/util/xml.py
+++ b/
sfa/util/xml.py
@@
-55,6
+55,9
@@
class XmlNode:
element = etree.SubElement(self.node, name, **kwds)
return XmlNode(element, self.namespaces)
element = etree.SubElement(self.node, name, **kwds)
return XmlNode(element, self.namespaces)
+ def append(self, elem):
+ self.node.append(elem)
+
def remove_elements(name):
"""
Removes all occurences of an element from the tree. Start at
def remove_elements(name):
"""
Removes all occurences of an element from the tree. Start at