Documentation ¶
Index ¶
- type Attr
- type Document
- type Element
- func (node *Element) AddChild(child *Element) *Element
- func (node *Element) Bytes(out *bytes.Buffer, indent bool, indentType string, level int)
- func (node *Element) DeclareNamespace(ns Namespace) *Element
- func (node *Element) DeclaredNamespaces() []*Namespace
- func (node *Element) RemoveChild(child *Element) *Element
- func (node *Element) SetAttr(name string, value string) *Element
- func (node *Element) SetContent(content string) *Element
- func (node *Element) SetNamespace(prefix string, uri string)
- func (node *Element) SetParent(parent *Element) *Element
- func (node *Element) String() string
- type Namespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { PrettyPrint bool Indentation string DocType bool // contains filtered or unexported fields }
func CreateDocument ¶
func CreateDocument() *Document
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func CreateElement ¶
func (*Element) DeclareNamespace ¶
Add a namespace declaration to this node
func (*Element) DeclaredNamespaces ¶
func (*Element) RemoveChild ¶
func (*Element) SetContent ¶
func (*Element) SetNamespace ¶
Click to show internal directories.
Click to hide internal directories.