Versions in this module Expand all Collapse all v0 v0.0.2 Jul 27, 2023 Changes in this version + type Attributes struct + func (attrs *Attributes) GetRef(name any) option.Option[*Attribute] + func (attrs *Attributes) Iter() iter.Iterator[Attribute] + func (attrs *Attributes) Length() int + func (attrs *Attributes) Set(attr Attribute) v0.0.1 Jul 27, 2023 Changes in this version + const CommentElementFlag + const ProcInstFlag + const TOK_CLOSE_COMMENT + const TOK_CLOSE_ELEMENT_TAG + const TOK_CLOSE_PROCINST + const TOK_CLOSE_SINGLE_ELEMENT_TAG + const TOK_EOF + const TOK_EQUAL + const TOK_ID + const TOK_INVALID + const TOK_OPEN_CLOSING_ELEMENT_TAG + const TOK_OPEN_COMMENT + const TOK_OPEN_ELEMENT_TAG + const TOK_OPEN_PROCINST + const TOK_PREFIX_SEP + const TOK_STRING + const TextElementFlag + type Attribute struct + Name QName + Value string + func NewAttribute(name any, value string) Attribute + func (attr *Attribute) WriteTo(w io.Writer, args WriteArgs) + func (attr Attribute) String() string + type Document struct + Children []Element + func NewDocument(children []Element) Document + func (doc *Document) AttachChild(child Element) + func (doc *Document) WriteTo(w io.Writer, args WriteArgs) + type Element struct + Attributes map[string]Attribute + Children []Element + Flag byte + Tag QName + Text string + func NewCommentElement(text string) Element + func NewElement(tag any, text string, flag byte, children []Element, attributes []Attribute) Element + func NewTextElement(text string) Element + func (el *Element) AttachAttribute(attr Attribute) + func (el *Element) AttachChild(child Element) + func (el *Element) WriteTo(w io.Writer, args WriteArgs) + func (el Element) String() string + type NamespaceTable struct + func (table *NamespaceTable) Attach(parent *NamespaceTable) + type Parser struct + func NewParser(r io.Reader, args ParserArgs) Parser + func (p *Parser) GetTrace() []string + func (p *Parser) Parse() result.Result[Document] + type ParserArgs struct + Debug bool + type QName struct + Local string + Prefix option.Option[string] + func (q QName) String() string + func (qname *QName) WriteTo(w io.Writer, args WriteArgs) + type Scanner struct + func NewScanner(r io.Reader) Scanner + func (l *Scanner) Next() option.Option[result.Result[Token]] + type Token struct + Col int + Row int + Type int8 + Value string + func (tok Token) String() string + func (tok Token) TypeName() string + type WriteArgs struct + Level int