func (n *Element) RemoveAttribute(name string) error { prop, err := n.getAttributeNode(name) if err != nil { return err } C.xmlUnlinkNode((*C.xmlNode)(unsafe.Pointer(prop))) C.xmlFreeProp(prop) return nil }
// xmlFreeProp func (attr *Attribute) Free() { C.xmlFreeProp(attr.Ptr) attr.Ptr = nil }