Debian Codegraph @

tree/xmltree/xmlbuilder/xmlbuilder.go

raw
1 package xmlbuilder
2
3 import (
4 "encoding/xml"
5
6 "github.com/ChrisTrenkamp/goxpath/tree"
7 )
8
9 //BuilderOpts supplies all the information needed to create an XML node.
10 type BuilderOpts struct {
11 Dec *xml.Decoder
12 Tok xml.Token
13 NodeType tree.NodeType
14 NS map[xml.Name]string
15 Attrs []*xml.Attr
16 NodePos int
17 AttrStartPos int
18 }
19
20 //XMLBuilder is an interface for creating XML structures.
21 type XMLBuilder interface {
22 tree.Node
23 CreateNode(*BuilderOpts) XMLBuilder
24 EndElem() XMLBuilder
25 }