Documentation ¶
Index ¶
- Variables
- func Marshal(model XMLMarshaler) ([]byte, error)
- func Unmarshal(d []byte, model XMLUnmarshaler) error
- type CharData
- type EndTag
- type StartTag
- type Token
- type UniversalElement
- func (u *UniversalElement) GetElementByIndx(indx int) *UniversalElement
- func (u *UniversalElement) GetElementByName(name string) *UniversalElement
- func (u *UniversalElement) LenChildren() int
- func (u *UniversalElement) XMLMarshal(e *XMLEncoder) error
- func (u *UniversalElement) XMLUnmarshal(e *XMLDecoder, start StartTag) error
- type XMLDecoder
- type XMLEncoder
- type XMLMarshaler
- type XMLUnmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SearchSize = 8096
)
Functions ¶
func Marshal ¶
func Marshal(model XMLMarshaler) ([]byte, error)
func Unmarshal ¶
func Unmarshal(d []byte, model XMLUnmarshaler) error
Types ¶
type UniversalElement ¶
type UniversalElement struct { XMLName string Attrs [][2]string Data string `xml:",chardata"` Children []*UniversalElement }
func (*UniversalElement) GetElementByIndx ¶
func (u *UniversalElement) GetElementByIndx(indx int) *UniversalElement
func (*UniversalElement) GetElementByName ¶
func (u *UniversalElement) GetElementByName(name string) *UniversalElement
func (*UniversalElement) LenChildren ¶
func (u *UniversalElement) LenChildren() int
func (*UniversalElement) XMLMarshal ¶
func (u *UniversalElement) XMLMarshal(e *XMLEncoder) error
func (*UniversalElement) XMLUnmarshal ¶
func (u *UniversalElement) XMLUnmarshal(e *XMLDecoder, start StartTag) error
type XMLDecoder ¶
type XMLDecoder struct {
// contains filtered or unexported fields
}
func NewXMLDecoder ¶
func NewXMLDecoder(d []byte) *XMLDecoder
func (*XMLDecoder) Token ¶
func (xp *XMLDecoder) Token() (Token, error)
type XMLEncoder ¶
type XMLEncoder struct {
// contains filtered or unexported fields
}
func NewXMLEncoder ¶
func NewXMLEncoder() *XMLEncoder
func (*XMLEncoder) EncodeToken ¶
func (xp *XMLEncoder) EncodeToken(tkn Token) error
type XMLMarshaler ¶
type XMLMarshaler interface {
XMLMarshal(e *XMLEncoder) error
}
type XMLUnmarshaler ¶
type XMLUnmarshaler interface {
XMLUnmarshal(d *XMLDecoder, start StartTag) error
}
Click to show internal directories.
Click to hide internal directories.