Versions in this module Expand all Collapse all v0 v0.0.1 Dec 4, 2018 Changes in this version + func Prepare(n *Node) error + func TextString(n *Node) (string, error) + func XMLString(n *Node) (string, error) + type Node struct + FirstChild *Node + Hash []byte + Name []byte + NextSibling *Node + Parent *Node + PrevSiblingCyclic *Node + Signature []byte + Type NodeType + Value []byte + func NewAttribute(name []byte, value []byte) *Node + func NewCData(value []byte) *Node + func NewComment(value []byte) *Node + func NewData(value []byte) *Node + func NewDeclaration() *Node + func NewDirectory(name []byte) *Node + func NewDoctype(value []byte) *Node + func NewDocument(name []byte) *Node + func NewElement(name []byte) *Node + func NewNode(t NodeType) *Node + func NewNotXML(name []byte, value []byte) *Node + func NewProcInstr(name []byte, value []byte) *Node + func (n *Node) AppendChild(child *Node) *Node + func (n *Node) CalculateHash(h hash.Hash) error + func (n *Node) CalculateSignature() + func (n *Node) Children() []*Node + func (n *Node) LastChild() *Node + func (n *Node) PrevSibling() *Node + func (n *Node) Remove() + func (n Node) String() string + type NodeType int + const Attribute + const CData + const Comment + const Data + const Declaration + const Directory + const Doctype + const Document + const Element + const NotXML + const ProcInstr + func (i NodeType) String() string + func (nt NodeType) Signature() []byte + type Stack struct + func (s *Stack) Empty() + func (s *Stack) Get() []*Node + func (s *Stack) IsEmpty() bool + func (s *Stack) Len() int + func (s *Stack) Peek() *Node + func (s *Stack) Pop() (*Node, bool) + func (s *Stack) Push(i *Node) bool + type TextEncoder struct + func NewTextEncoder(w io.Writer) *TextEncoder + func (enc *TextEncoder) Encode(n *Node) error + type XMLEncoder struct + func NewXMLEncoder(w io.Writer) *XMLEncoder + func (enc *XMLEncoder) Encode(n *Node) error + func (enc *XMLEncoder) Indent(indent string)