cleaning up remove function
This commit is contained in:
parent
3236d1c7cb
commit
199b36f234
6
node.go
6
node.go
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue