Documentation ¶
Index ¶
Constants ¶
View Source
const ( TOK_INVALID = iota TOK_EOF TOK_ID TOK_STRING TOK_PREFIX_SEP // Symbol ":" TOK_EQUAL // Symbol "=" TOK_OPEN_ELEMENT_TAG // Symbol "<" TOK_CLOSE_SINGLE_ELEMENT_TAG // Symbol "/>" TOK_OPEN_CLOSING_ELEMENT_TAG // Symbol "</" TOK_CLOSE_ELEMENT_TAG // Symbol ">" TOK_OPEN_COMMENT // Symbol "<!--" TOK_CLOSE_COMMENT // Symbol "-->" TOK_OPEN_PROCINST // Symbol "<?" TOK_CLOSE_PROCINST // Symbol "?>" )
View Source
const CommentElementFlag = 0b100
View Source
const ProcInstFlag = 0b1
View Source
const TextElementFlag = 0b10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
func NewAttribute ¶
type Attributes ¶ added in v0.0.2
type Attributes struct {
// contains filtered or unexported fields
}
func (*Attributes) GetRef ¶ added in v0.0.2
func (attrs *Attributes) GetRef(name any) option.Option[*Attribute]
func (*Attributes) Length ¶ added in v0.0.2
func (attrs *Attributes) Length() int
func (*Attributes) Set ¶ added in v0.0.2
func (attrs *Attributes) Set(attr Attribute)
type Document ¶
type Document struct {
Children []Element
}
func NewDocument ¶
func (*Document) AttachChild ¶
type Element ¶
type Element struct { Tag QName Text string Children []Element Attributes Attributes Flag byte }
func NewCommentElement ¶
func NewElement ¶
func NewTextElement ¶
func (*Element) AttachAttribute ¶
func (*Element) AttachChild ¶
type NamespaceTable ¶
type NamespaceTable struct {
// contains filtered or unexported fields
}
func (*NamespaceTable) Attach ¶
func (table *NamespaceTable) Attach(parent *NamespaceTable)
type ParserArgs ¶
type ParserArgs struct { // Allows to trace the operations of the parser Debug bool }
Click to show internal directories.
Click to hide internal directories.