Versions in this module Expand all Collapse all v1 v1.0.1 Sep 10, 2023 Changes in this version + const DEFAULT_XML_HEADER + type Attribute struct + Name string + Value string + type Document struct + Directives []string + ProcInst string + Root *Node + func Must(doc *Document, err error) *Document + func NewDocument(name string) *Document + func Parse(r io.Reader) (*Document, error) + func ParseFile(filename string) (*Document, error) + func ParseXML(s string) (*Document, error) + func (d *Document) XML() string + func (d *Document) XMLPretty() string + func (d *Document) XMLPrettyEx(indent string) string + type Node struct + Attributes []*Attribute + Children []*Node + Document *Document + Name string + Parent *Node + Text string + func (n *Node) AppendChild(c *Node) *Node + func (n *Node) CreateNode(name string) *Node + func (n *Node) FindByID(id string) *Node + func (n *Node) FindByName(name string) []*Node + func (n *Node) FindOneByName(name string) *Node + func (n *Node) FirstChild() *Node + func (n *Node) GetAttribute(name string) *Attribute + func (n *Node) GetAttributeValue(name string) string + func (n *Node) GetChild(name string) *Node + func (n *Node) GetChildren(name string) []*Node + func (n *Node) LastChild() *Node + func (n *Node) NextSibling() *Node + func (n *Node) PrevSibling() *Node + func (n *Node) Query(xpath string) []*Node + func (n *Node) QueryEach(xpath string, cb func(int, *Node)) + func (n *Node) QueryOne(xpath string) *Node + func (n *Node) RemoveAttribute(name string) *Node + func (n *Node) RemoveChild(c *Node) *Node + func (n *Node) Root() *Node + func (n *Node) SetAttributeValue(name string, value string) *Node + func (n *Node) XML() string + func (n *Node) XMLPretty() string + func (n *Node) XMLPrettyEx(indent string) string