From 199b36f2345692f9280b65ccc20fed1617927c15 Mon Sep 17 00:00:00 2001 From: Matthew Kanwisher Date: Thu, 29 Aug 2013 18:19:26 -0400 Subject: [PATCH] cleaning up remove function --- node.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/node.go b/node.go index 42d55f7..85e4542 100644 --- a/node.go +++ b/node.go @@ -397,7 +397,11 @@ func rec_SelectNodes(cn *Node, namespace, name string, list *[]*Node, recurse bo func (this *Node) RemoveNameSpace() { this.Name.Space = "" - this.RemoveAttr("xmlns") + // this.RemoveAttr("xmlns") //This is questionable + + for _, v := range this.Children { + v.RemoveNameSpace() + } } func (this *Node) RemoveAttr(name string) {