Documentation
¶
Index ¶
- func NewDocument(name string, opts data.DOMOption) data.Document
- func NewDocumentNS(name, ns string, opts data.DOMOption) data.Document
- func Read(r io.Reader, opts data.DOMOption) (data.Document, error)
- func ReadEx(r io.Reader, opts data.DOMOption, fn data.DOMValidateNodeFunc) (data.Document, error)
- type Comment
- type Document
- func (this *Document) CreateComment(cdata string) data.Node
- func (this *Document) CreateElement(name string) data.Node
- func (this *Document) CreateElementNS(name, ns string) data.Node
- func (this *Document) CreateText(cdata string) data.Node
- func (this *Document) GetElementById(value string) data.Node
- func (this *Document) GetElementByIdNS(value, ns string) data.Node
- func (this *Document) String() string
- func (this *Document) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error
- func (this *Document) Write(w io.Writer) error
- type Element
- func (this *Element) AddChild(child data.Node) error
- func (this *Element) Attr(name string) (xml.Attr, bool)
- func (this *Element) AttrNS(name, ns string) (xml.Attr, bool)
- func (this *Element) Attrs() []xml.Attr
- func (this *Element) Children() []data.Node
- func (this *Element) FirstChild() data.Node
- func (this *Element) GetElementsByTagName(name string) []data.Node
- func (this *Element) GetElementsByTagNameNS(name, ns string) []data.Node
- func (this *Element) InsertChildBefore(child, ref data.Node) error
- func (this *Element) LastChild() data.Node
- func (this *Element) MarshalXML(enc *xml.Encoder, start xml.StartElement) error
- func (this *Element) Name() xml.Name
- func (this *Element) RemoveAllChildren() error
- func (this *Element) RemoveChild(child data.Node) error
- func (this *Element) SetAttr(name string, value string) error
- func (this *Element) SetAttrNS(name, ns string, value string) error
- func (this *Element) String() string
- type Node
- func (this *Node) AddChild(child data.Node) error
- func (this *Node) Attr(string) (xml.Attr, bool)
- func (this *Node) AttrNS(string, string) (xml.Attr, bool)
- func (this *Node) Attrs() []xml.Attr
- func (this *Node) Cdata() string
- func (this *Node) Children() []data.Node
- func (this *Node) Document() data.Document
- func (this *Node) FirstChild() data.Node
- func (this *Node) GetElementsByTagName(name string) []data.Node
- func (this *Node) GetElementsByTagNameNS(string, string) []data.Node
- func (this *Node) InsertChildBefore(node, ref data.Node) error
- func (this *Node) LastChild() data.Node
- func (this *Node) Name() xml.Name
- func (this *Node) Parent() data.Node
- func (this *Node) RemoveChild(child data.Node) error
- func (this *Node) RemoveChildren() error
- func (this *Node) SetAttr(name string, value string) error
- func (this *Node) SetAttrNS(string, string, string) error
- type Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comment ¶
type Comment struct {
Node
// contains filtered or unexported fields
}
func (*Comment) MarshalXML ¶
type Document ¶
type Document struct {
*Element
// contains filtered or unexported fields
}
func (*Document) GetElementByIdNS ¶
func (*Document) UnmarshalXML ¶
type Element ¶
func NewElementNS ¶
func (*Element) FirstChild ¶
func (*Element) GetElementsByTagName ¶
func (*Element) GetElementsByTagNameNS ¶
func (*Element) InsertChildBefore ¶
func (*Element) MarshalXML ¶
func (*Element) RemoveAllChildren ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) FirstChild ¶
func (*Node) GetElementsByTagNameNS ¶
func (*Node) RemoveChildren ¶
type Text ¶
type Text struct {
Node
// contains filtered or unexported fields
}
func (*Text) MarshalXML ¶
Click to show internal directories.
Click to hide internal directories.