Versions in this module Expand all Collapse all v1 v1.0.1 Jul 26, 2021 Changes in this version + func FindEach(top *Node, expr string, cb func(int, *Node)) + type Node struct + Attr []xml.Attr + Data string + FirstChild *Node + LastChild *Node + NamespaceURI string + NextSibling *Node + Parent *Node + Prefix string + PrevSibling *Node + Type NodeType + func Find(top *Node, expr string) []*Node + func FindOne(top *Node, expr string) *Node + func LoadURL(url string) (*Node, error) + func LoadXML(s string) *Node + func Parse(r io.Reader) (*Node, error) + func (n *Node) AddElement(name string, attr []xml.Attr, innerText string, parentExpr string) + func (n *Node) InnerText() string + func (n *Node) OutputXML(self bool) string + func (n *Node) RemoveElements(expr string) + func (n *Node) SelectAttr(name string) string + func (n *Node) SelectElement(name string) *Node + func (n *Node) SelectElements(name string) []*Node + type NodeNavigator struct + func CreateXPathNavigator(top *Node) *NodeNavigator + func (x *NodeNavigator) Copy() xpath.NodeNavigator + func (x *NodeNavigator) Current() *Node + func (x *NodeNavigator) LocalName() string + func (x *NodeNavigator) MoveTo(other xpath.NodeNavigator) bool + func (x *NodeNavigator) MoveToChild() bool + func (x *NodeNavigator) MoveToFirst() bool + func (x *NodeNavigator) MoveToNext() bool + func (x *NodeNavigator) MoveToNextAttribute() bool + func (x *NodeNavigator) MoveToParent() bool + func (x *NodeNavigator) MoveToPrevious() bool + func (x *NodeNavigator) MoveToRoot() + func (x *NodeNavigator) NodeType() xpath.NodeType + func (x *NodeNavigator) Prefix() string + func (x *NodeNavigator) String() string + func (x *NodeNavigator) Value() string + type NodeType uint + const CommentNode + const DeclarationNode + const DocumentNode + const ElementNode + const TextNode