tree/xmltree/xmlnode/xmlnode.go
func (a XMLNode) ResValue() string {
	switch a.NodeType {
	case tree.NtAttr:
		return a.Token.(*xml.Attr).Value
	case tree.NtChd:
		return string(a.Token.(xml.CharData))
	case tree.NtComm:
		return string(a.Token.(xml.Comment))
	}
	//case tree.NtPi:
	return string(a.Token.(xml.ProcInst).Inst)
}
func (a XMLNode) ResValue() string {
	switch a.NodeType {
	case tree.NtAttr:
		return a.Token.(*xml.Attr).Value
	case tree.NtChd:
		return string(a.Token.(xml.CharData))
	case tree.NtComm:
		return string(a.Token.(xml.Comment))
	}
	//case tree.NtPi:
	return string(a.Token.(xml.ProcInst).Inst)
}
//ResValue returns the string value of the attribute