Documentation ¶
Index ¶
- func Root() xmlbuilder.XMLBuilder
- type XMLEle
- func (x *XMLEle) CreateNode(opts *xmlbuilder.BuilderOpts) xmlbuilder.XMLBuilder
- func (x *XMLEle) EndElem() xmlbuilder.XMLBuilder
- func (x *XMLEle) GetAttrs() []tree.Node
- func (x *XMLEle) GetChildren() []tree.Node
- func (x *XMLEle) GetParent() tree.Elem
- func (x *XMLEle) GetToken() xml.Token
- 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 XMLEle ¶
type XMLEle struct { xml.StartElement tree.NSBuilder Attrs []tree.Node Children []tree.Node Parent tree.Elem tree.NodePos tree.NodeType }
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
Click to show internal directories.
Click to hide internal directories.