goProject/.svn/pristine/d6/d6b67ac69f06a10e8753aa29615c830eeb6a93d2.svn-base
2025-01-06 16:21:36 +08:00

26 lines
467 B
Plaintext

package xpath
// A Node is an element node that can navigating to
// an node attribute and another node.
//type Node interface{}
// A type of XPath node.
type NodeType int
const (
// A root node of the XML document or node tree.
RootNode NodeType = iota
// An element, such as <element>.
ElementNode
// An attribute, such as id='123'.
AttributeNode
// The text content of a node.
TextNode
// A comment node, such as <!-- my comment -->
CommentNode
)