From 5df3e2c74371951c352b164f9c668536dab69ba1 Mon Sep 17 00:00:00 2001 From: Felix Rabe Date: Tue, 17 Nov 2009 17:50:18 +0100 Subject: [PATCH] Implement --- xmlmerge.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmlmerge.py b/xmlmerge.py index 3771652..803358c 100644 --- a/xmlmerge.py +++ b/xmlmerge.py @@ -580,7 +580,11 @@ class XMLPreprocess(object): """ Remove (zero or more) elements selected by XPath (@select). """ - pass # TODO + select = xml_element.get("select") + assert select is not None + elements = xml_element.xpath(select) + for el in elements: + el.getparent().remove(el) def _xm_setattribute(self, xml_element): """ -- 2.11.4.GIT