Documentation
¶
Overview ¶
*
*donnie4w@gmail.com
Index ¶
- type Attr
- type E
- type Element
- func (t *Element) AddAttr(name, value string)
- func (t *Element) AddNode(el *Element) error
- func (t *Element) AddNodeByString(xmlstr string) error
- func (t *Element) AllNodes() []*Element
- func (t *Element) AttrValue(name string) (string, bool)
- func (t *Element) DocLength() int64
- func (t *Element) GetNodeByPath(path string) *Element
- func (t *Element) GetNodesByPath(path string) []*Element
- func (t *Element) Head() string
- func (t *Element) Name() string
- func (t *Element) Node(name string) *Element
- func (t *Element) Nodes(name string) []*Element
- func (t *Element) NodesLength() int64
- func (t *Element) Parent() *Element
- func (t *Element) RemoveAttr(name string) bool
- func (t *Element) RemoveNode(name string) bool
- func (t *Element) Root() *Element
- func (t *Element) SyncToXml() string
- func (t *Element) ToString() string
- func (t *Element) ToXML() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
func NewElement ¶
func (*Element) AddNodeByString ¶
add an element used string for current element
func (*Element) GetNodeByPath ¶
func (*Element) GetNodesByPath ¶
func (*Element) RemoveAttr ¶
remove the attribute "name" for current element
func (*Element) RemoveNode ¶
remove the child element "name" for current element
Click to show internal directories.
Click to hide internal directories.