Documentation
¶
Index ¶
- func Fetch(u string, v interface{}) error
- func Parse(d []byte, v interface{}) error
- type DOMNode
- func (d *DOMNode) GetAttribute(name xml.Name) *xml.Attr
- func (d *DOMNode) GetAttributes(name xml.Name) []xml.Attr
- func (d *DOMNode) GetChildByTagName(name xml.Name) *DOMNode
- func (d *DOMNode) GetChildrenByTagName(name xml.Name) []*DOMNode
- func (d *DOMNode) GetElementByTagName(name xml.Name) *DOMNode
- func (d *DOMNode) GetElementsByTagName(name xml.Name) []*DOMNode
- func (n *DOMNode) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (d *DOMNode) Text() string
- func (d *DOMNode) UnmarshalInto(v interface{}) error
- func (n *DOMNode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type DOMType
- type HasAttributes
- type HasLinks
- type HasProperties
- type Link
- type Property
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DOMNode ¶
type DOMNode struct {
Type DOMType
XMLName xml.Name
Attributes []xml.Attr `xml:",any,attr"`
Children []*DOMNode `xml:",any"`
CharData xml.CharData `xml:",chardata"`
}
func (*DOMNode) GetChildrenByTagName ¶
func (*DOMNode) GetElementsByTagName ¶
func (*DOMNode) MarshalXML ¶
func (*DOMNode) UnmarshalInto ¶
func (*DOMNode) UnmarshalXML ¶
type HasAttributes ¶
func (*HasAttributes) GetAttribute ¶
func (a *HasAttributes) GetAttribute(name xml.Name) *xml.Attr
func (*HasAttributes) GetAttributes ¶
func (a *HasAttributes) GetAttributes(name xml.Name) []xml.Attr
type HasProperties ¶
type HasProperties struct {
Property []Property `xml:"link" json:"link,omitempty"`
}
func (*HasProperties) GetProperties ¶
func (v *HasProperties) GetProperties(typ string) []Property
func (*HasProperties) GetProperty ¶
func (v *HasProperties) GetProperty(typ string) *Property
type Link ¶
type Link struct {
HasAttributes
Rel string `xml:"rel,attr,omitempty" json:"rel,omitempty"`
Type string `xml:"type,attr,omitempty" json:"type,omitempty"`
Href string `xml:"href,attr" json:"href,omitempty"`
HrefLang string `xml:"hreflang,attr,omitempty" json:"hrefLang,omitempty"`
Template string `xml:"template,attr,omitempty" json:"template,omitempty"`
Title string `xml:"title,attr,omitempty" json:"title,omitempty"`
Length uint `xml:"length,attr,omitempty" json:"length,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.