cleaning up remove function

This commit is contained in:
Matthew Kanwisher 2013-08-29 18:19:26 -04:00
parent 3236d1c7cb
commit 199b36f234
1 changed files with 5 additions and 1 deletions

View File

@ -397,7 +397,11 @@ func rec_SelectNodes(cn *Node, namespace, name string, list *[]*Node, recurse bo
func (this *Node) RemoveNameSpace() { func (this *Node) RemoveNameSpace() {
this.Name.Space = "" 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) { func (this *Node) RemoveAttr(name string) {