Example #1
0
func subNode(xn *xmlx.Node, name string) (sn *xmlx.Node) {
	if sn = xn.SelectNode(ns, name); sn == nil {
		if sn = xn.SelectNode("", name); sn == nil {
			sn = xn.SelectNode("*", name)
		}
	}
	return
}
Example #2
0
func xcn(xn *xmlx.Node, name string) (cn *xmlx.Node) {
	if cn = xn.SelectNode(xmlns, name); cn == nil {
		if cn = xn.SelectNode("", name); cn == nil {
			cn = xn.SelectNode("*", name)
		}
	}
	return
}