1 Star 0 Fork 0

jack / libxml2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
node_attr.go 526 Bytes
一键复制 编辑 原始数据 按行查看 历史
Daisuke Maki 提交于 2018-02-21 09:49 . Update import paths
package dom
import (
"github.com/lestrrat-go/libxml2/clib"
)
// Free releases the underlying C struct
func (n *Attribute) Free() {
clib.XMLFreeProp(n)
}
// HasChildNodes returns true if the node contains any child nodes.
// By definition attributes cannot have children, so this always
// returns false
func (n *Attribute) HasChildNodes() bool {
return false
}
// Value returns the value of the attribute.
func (n *Attribute) Value() string {
v, err := clib.XMLNodeValue(n)
if err != nil {
return ""
}
return v
}
1
https://gitee.com/wholesky/libxml2.git
git@gitee.com:wholesky/libxml2.git
wholesky
libxml2
libxml2
e6d9de61b80d

搜索帮助