Documentation ¶
Index ¶
- Constants
- type Attr
- type CharacterData
- func (n *CharacterData) AppendChild(c Node) Node
- func (n *CharacterData) AppendData(data string)
- func (n *CharacterData) Attributes() NamedNodeMap
- func (n *CharacterData) ChildNodes() NodeList
- func (n *CharacterData) Data() string
- func (n *CharacterData) DeleteData(offset, count uint32)
- func (n *CharacterData) EscapedBytes() []byte
- func (p *CharacterData) FirstChild() Node
- func (n *CharacterData) HasChildNodes() (b bool)
- func (p *CharacterData) InsertBefore(newChild Node, refChild Node) Node
- func (n *CharacterData) InsertData(offset uint32, data string)
- func (p *CharacterData) LastChild() Node
- func (n *CharacterData) Length() uint32
- func (n *CharacterData) NextSibling() Node
- func (n *CharacterData) NodeName() (s string)
- func (n *CharacterData) NodeType() uint
- func (n *CharacterData) NodeValue() (s string)
- func (n *CharacterData) OwnerDocument() *Document
- func (n *CharacterData) ParentNode() Node
- func (n *CharacterData) PreviousSibling() Node
- func (n *CharacterData) RemoveChild(c Node) Node
- func (p *CharacterData) ReplaceChild(nc Node, rc Node) Node
- func (n *CharacterData) ReplaceData(offset, count uint32, data string)
- func (n *CharacterData) SetData(s string)
- func (n *CharacterData) String() string
- func (n *CharacterData) SubstringData(offset uint32, count uint32) string
- func (n *CharacterData) TagName() string
- type Comment
- func (n *Comment) AppendChild(c Node) Node
- func (n *Comment) Attributes() NamedNodeMap
- func (n *Comment) ChildNodes() NodeList
- func (p *Comment) FirstChild() Node
- func (n *Comment) HasChildNodes() (b bool)
- func (p *Comment) InsertBefore(newChild Node, refChild Node) Node
- func (p *Comment) LastChild() Node
- func (n *Comment) NextSibling() Node
- func (n *Comment) NodeName() (s string)
- func (n *Comment) NodeType() uint
- func (n *Comment) NodeValue() (s string)
- func (n *Comment) OwnerDocument() *Document
- func (n *Comment) ParentNode() Node
- func (n *Comment) PreviousSibling() Node
- func (n *Comment) RemoveChild(c Node) Node
- func (p *Comment) ReplaceChild(nc Node, rc Node) Node
- func (n *Comment) TagName() string
- type Document
- func Parse(r io.Reader, strict bool, autoClose []string, entity map[string]string) (doc *Document, err error)
- func ParseHtml(r io.Reader) (doc *Document, err error)
- func ParseString(s string, strict bool, autoClose []string, entity map[string]string) (doc *Document, err error)
- func ParseStringHtml(s string) (doc *Document, err error)
- func ParseStringXml(s string) (doc *Document, err error)
- func ParseXml(r io.Reader) (doc *Document, err error)
- func (d *Document) AppendChild(c Node) Node
- func (n *Document) Attributes() NamedNodeMap
- func (n *Document) ChildNodes() NodeList
- func (d *Document) CreateComment(text string) *Comment
- func (d *Document) CreateElement(tag string) *Element
- func (d *Document) CreateTextNode(text string) *Text
- func (d *Document) DocumentElement() *Element
- func (p *Document) FirstChild() Node
- func (d *Document) GetElementById(id string) *Element
- func (n *Document) HasChildNodes() (b bool)
- func (p *Document) InsertBefore(newChild Node, refChild Node) Node
- func (p *Document) LastChild() Node
- func (n *Document) NextSibling() Node
- func (d *Document) NodeName() string
- func (d *Document) NodeType() uint
- func (d *Document) NodeValue() string
- func (d *Document) OwnerDocument() *Document
- func (n *Document) ParentNode() Node
- func (n *Document) PreviousSibling() Node
- func (d *Document) RemoveChild(c Node) Node
- func (p *Document) ReplaceChild(nc Node, rc Node) Node
- func (n *Document) TagName() string
- func (doc *Document) ToText(escape bool) []byte
- func (doc *Document) ToXml() []byte
- type Element
- func (n *Element) AppendChild(c Node) Node
- func (n *Element) Attributes() NamedNodeMap
- func (n *Element) ChildNodes() NodeList
- func (p *Element) FirstChild() Node
- func (n *Element) GetAttribute(name string) string
- func (e *Element) GetElementById(id string) *Element
- func (n *Element) GetElementsByTagName(name string) NodeList
- func (n *Element) HasAttribute(attrname string) bool
- func (n *Element) HasChildNodes() (b bool)
- func (p *Element) InsertBefore(newChild Node, refChild Node) Node
- func (p *Element) LastChild() Node
- func (n *Element) NextSibling() Node
- func (n *Element) NodeName() string
- func (e *Element) NodeType() uint
- func (n *Element) NodeValue() string
- func (n *Element) OwnerDocument() *Document
- func (n *Element) ParentNode() Node
- func (n *Element) PreviousSibling() Node
- func (n *Element) RemoveAttribute(attrname string)
- func (n *Element) RemoveChild(c Node) Node
- func (p *Element) ReplaceChild(nc Node, rc Node) Node
- func (n *Element) SetAttribute(attrname string, attrval string)
- func (n *Element) TagName() string
- func (n *Element) ToText(escape bool) []byte
- func (n *Element) ToXml() []byte
- type NamedNodeMap
- type Node
- type NodeList
- type SyntaxError
- type Text
- func (n *Text) AppendChild(c Node) Node
- func (n *Text) Attributes() NamedNodeMap
- func (n *Text) ChildNodes() NodeList
- func (p *Text) FirstChild() Node
- func (n *Text) HasChildNodes() (b bool)
- func (p *Text) InsertBefore(newChild Node, refChild Node) Node
- func (p *Text) LastChild() Node
- func (n *Text) NextSibling() Node
- func (n *Text) NodeName() (s string)
- func (n *Text) NodeType() uint
- func (n *Text) NodeValue() (s string)
- func (n *Text) OwnerDocument() *Document
- func (n *Text) ParentNode() Node
- func (n *Text) PreviousSibling() Node
- func (n *Text) RemoveChild(c Node) Node
- func (p *Text) ReplaceChild(nc Node, rc Node) Node
- func (n *Text) TagName() string
Constants ¶
View Source
const ( ELEMENT_NODE = iota ATTRIBUTE_NODE TEXT_NODE CDATA_SECTION_NODE ENTITY_REFERENCE_NODE ENTITY_NODE PROCESSING_INSTRUCTION_NODE COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE NOTATION_NODE )
View Source
const (
DEBUG = true
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharacterData ¶
type CharacterData struct {
// contains filtered or unexported fields
}
func (*CharacterData) AppendChild ¶
func (*CharacterData) AppendData ¶
func (n *CharacterData) AppendData(data string)
func (*CharacterData) Attributes ¶
func (n *CharacterData) Attributes() NamedNodeMap
func (*CharacterData) ChildNodes ¶
func (n *CharacterData) ChildNodes() NodeList
func (*CharacterData) Data ¶
func (n *CharacterData) Data() string
func (*CharacterData) DeleteData ¶
func (n *CharacterData) DeleteData(offset, count uint32)
func (*CharacterData) EscapedBytes ¶
func (n *CharacterData) EscapedBytes() []byte
func (*CharacterData) FirstChild ¶
func (p *CharacterData) FirstChild() Node
func (*CharacterData) HasChildNodes ¶
func (n *CharacterData) HasChildNodes() (b bool)
func (*CharacterData) InsertBefore ¶
func (*CharacterData) InsertData ¶
func (n *CharacterData) InsertData(offset uint32, data string)
func (*CharacterData) Length ¶
func (n *CharacterData) Length() uint32
func (*CharacterData) NextSibling ¶
func (n *CharacterData) NextSibling() Node
func (*CharacterData) NodeName ¶
func (n *CharacterData) NodeName() (s string)
func (*CharacterData) NodeType ¶
func (n *CharacterData) NodeType() uint
func (*CharacterData) NodeValue ¶
func (n *CharacterData) NodeValue() (s string)
func (*CharacterData) OwnerDocument ¶
func (n *CharacterData) OwnerDocument() *Document
func (*CharacterData) ParentNode ¶
func (n *CharacterData) ParentNode() Node
func (*CharacterData) PreviousSibling ¶
func (n *CharacterData) PreviousSibling() Node
func (*CharacterData) RemoveChild ¶
func (*CharacterData) ReplaceChild ¶
func (*CharacterData) ReplaceData ¶
func (n *CharacterData) ReplaceData(offset, count uint32, data string)
func (*CharacterData) SetData ¶
func (n *CharacterData) SetData(s string)
func (*CharacterData) String ¶
func (n *CharacterData) String() string
func (*CharacterData) SubstringData ¶
func (n *CharacterData) SubstringData(offset uint32, count uint32) string
type Comment ¶
type Comment struct {
CharacterData
}
func (*Comment) AppendChild ¶
func (*Comment) Attributes ¶
func (n *Comment) Attributes() NamedNodeMap
func (*Comment) ChildNodes ¶
func (n *Comment) ChildNodes() NodeList
func (*Comment) FirstChild ¶
func (p *Comment) FirstChild() Node
func (*Comment) HasChildNodes ¶
func (n *Comment) HasChildNodes() (b bool)
func (*Comment) InsertBefore ¶
func (*Comment) NextSibling ¶
func (*Comment) OwnerDocument ¶
func (*Comment) ParentNode ¶
func (n *Comment) ParentNode() Node
func (*Comment) PreviousSibling ¶
func (*Comment) RemoveChild ¶
func (*Comment) ReplaceChild ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
DOM3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#i-Document
func ParseString ¶
func ParseStringHtml ¶
func ParseStringXml ¶
func (*Document) AppendChild ¶
func (*Document) Attributes ¶
func (n *Document) Attributes() NamedNodeMap
func (*Document) ChildNodes ¶
func (n *Document) ChildNodes() NodeList
func (*Document) CreateComment ¶
func (*Document) CreateElement ¶
func (*Document) CreateTextNode ¶
func (*Document) DocumentElement ¶
func (*Document) FirstChild ¶
func (p *Document) FirstChild() Node
func (*Document) HasChildNodes ¶
func (n *Document) HasChildNodes() (b bool)
func (*Document) InsertBefore ¶
func (*Document) NextSibling ¶
func (n *Document) NextSibling() Node
func (*Document) OwnerDocument ¶
func (*Document) ParentNode ¶
func (n *Document) ParentNode() Node
func (*Document) PreviousSibling ¶
func (n *Document) PreviousSibling() Node
func (*Document) RemoveChild ¶
func (*Document) ReplaceChild ¶
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
DOM3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-745549614
func (*Element) AppendChild ¶
func (*Element) Attributes ¶
func (n *Element) Attributes() NamedNodeMap
func (*Element) ChildNodes ¶
func (n *Element) ChildNodes() NodeList
func (*Element) FirstChild ¶
func (p *Element) FirstChild() Node
func (*Element) GetAttribute ¶
func (*Element) GetElementById ¶
func (*Element) GetElementsByTagName ¶
func (*Element) HasChildNodes ¶
func (n *Element) HasChildNodes() (b bool)
func (*Element) InsertBefore ¶
func (*Element) NextSibling ¶
func (*Element) OwnerDocument ¶
func (*Element) ParentNode ¶
func (n *Element) ParentNode() Node
func (*Element) PreviousSibling ¶
func (*Element) RemoveAttribute ¶
func (*Element) RemoveChild ¶
func (*Element) ReplaceChild ¶
func (*Element) SetAttribute ¶
type Node ¶
type Node interface { AppendChild(Node) Node RemoveChild(Node) Node InsertBefore(Node, Node) Node ReplaceChild(Node, Node) Node // attributes NodeName() string NodeValue() string NodeType() uint ParentNode() Node ChildNodes() NodeList Attributes() NamedNodeMap HasChildNodes() bool FirstChild() Node LastChild() Node PreviousSibling() Node NextSibling() Node // contains filtered or unexported methods }
DOM3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1950641247
type SyntaxError ¶
type SyntaxError struct {
Msg string
}
func (*SyntaxError) Error ¶
func (se *SyntaxError) Error() string
type Text ¶
type Text struct {
CharacterData
}
func (*Text) AppendChild ¶
func (*Text) Attributes ¶
func (n *Text) Attributes() NamedNodeMap
func (*Text) ChildNodes ¶
func (n *Text) ChildNodes() NodeList
func (*Text) FirstChild ¶
func (p *Text) FirstChild() Node
func (*Text) HasChildNodes ¶
func (n *Text) HasChildNodes() (b bool)
func (*Text) InsertBefore ¶
func (*Text) NextSibling ¶
func (*Text) OwnerDocument ¶
func (*Text) ParentNode ¶
func (n *Text) ParentNode() Node
func (*Text) PreviousSibling ¶
func (*Text) RemoveChild ¶
func (*Text) ReplaceChild ¶
Click to show internal directories.
Click to hide internal directories.