Documentation ¶
Index ¶
- func Root() xmlbuilder.XMLBuilder
- type NS
- type NSBuilder
- type XMLEle
- func (x *XMLEle) CreateNode(opts *xmlbuilder.BuilderOpts) xmlbuilder.XMLBuilder
- func (x *XMLEle) EndElem() xmlbuilder.XMLBuilder
- func (x *XMLEle) GetAttrs() []xmlnode.Node
- func (x *XMLEle) GetChildren() []xmlnode.Node
- func (x XMLEle) GetNodeType() tree.NodeType
- func (x *XMLEle) GetParent() xmlnode.Elem
- func (x *XMLEle) GetToken() xml.Token
- func (x *XMLEle) Pos() int
- func (x *XMLEle) ResValue() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Root ¶
func Root() xmlbuilder.XMLBuilder
Root is the default root node builder for xmltree.ParseXML
Types ¶
type NS ¶
NS is a namespace node.
type XMLEle ¶
type XMLEle struct { xml.StartElement NSBuilder Attrs []xmlnode.Node Children []xmlnode.Node Parent xmlnode.Elem tree.NodeType Position int }
XMLEle is an implementation of XPRes for XML elements
func (*XMLEle) CreateNode ¶
func (x *XMLEle) CreateNode(opts *xmlbuilder.BuilderOpts) xmlbuilder.XMLBuilder
CreateNode is an implementation of xmlbuilder.XMLBuilder. It appends the node specified in opts and returns the child if it is an element. Otherwise, it returns x.
func (*XMLEle) EndElem ¶
func (x *XMLEle) EndElem() xmlbuilder.XMLBuilder
EndElem is an implementation of xmlbuilder.XMLBuilder. It returns x's parent.
func (*XMLEle) GetChildren ¶
GetChildren returns all child nodes of the element
func (XMLEle) GetNodeType ¶
GetNodeType returns the node type
Click to show internal directories.
Click to hide internal directories.