-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnode.go
More file actions
48 lines (39 loc) · 756 Bytes
/
Copy pathnode.go
File metadata and controls
48 lines (39 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package node
// The catch-all interface for all nodes.
type Node interface{}
// The container for all nodes in the tree. There must only be one, and it must exist at the root.
type Root interface {
Node
}
// Implemented by Element's and Attributes. It is a convenience interface for querying by names.
type NamedNode interface {
Space() string
Local() string
}
type Element interface {
Node
NamedNode
}
type Namespace interface {
Node
Prefix() string
NamespaceValue() string
}
type Attribute interface {
Node
NamedNode
AttributeValue() string
}
type CharData interface {
Node
CharDataValue() string
}
type Comment interface {
Node
CommentValue() string
}
type ProcInst interface {
Node
Target() string
ProcInstValue() string
}