Documentation ¶
Overview ¶
This is a heavily modified version of goxpp. See the LICENSE file in the current directory for copyright information.
Index ¶
- type CharsetReader
- type XMLEventType
- type XMLPullParser
- func (p *XMLPullParser) Attribute(name string) string
- func (p *XMLPullParser) DecodeElement(v interface{}) error
- func (p *XMLPullParser) EventName(e XMLEventType) (name string)
- func (p *XMLPullParser) EventType(t xml.Token) (event XMLEventType)
- func (p *XMLPullParser) Expect(event XMLEventType, name string) (err error)
- func (p *XMLPullParser) ExpectAll(event XMLEventType, space string, name string) (err error)
- func (p *XMLPullParser) IsWhitespace() bool
- func (p *XMLPullParser) Next() (event XMLEventType, err error)
- func (p *XMLPullParser) NextTag() (event XMLEventType, err error)
- func (p *XMLPullParser) NextText() (string, error)
- func (p *XMLPullParser) NextToken() (event XMLEventType, err error)
- func (p *XMLPullParser) Skip() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XMLEventType ¶
type XMLEventType int
const ( StartDocument XMLEventType = iota EndDocument StartTag EndTag Text Comment ProcessingInstruction Directive IgnorableWhitespace // TO DO: ? )
type XMLPullParser ¶
type XMLPullParser struct { // Token State Depth int Event XMLEventType Attrs []xml.Attr Name string Space string Text string // contains filtered or unexported fields }
func NewXMLPullParser ¶
func NewXMLPullParser(r io.Reader, strict bool, cr CharsetReader) *XMLPullParser
func (*XMLPullParser) Attribute ¶
func (p *XMLPullParser) Attribute(name string) string
func (*XMLPullParser) DecodeElement ¶
func (p *XMLPullParser) DecodeElement(v interface{}) error
func (*XMLPullParser) EventName ¶
func (p *XMLPullParser) EventName(e XMLEventType) (name string)
func (*XMLPullParser) EventType ¶
func (p *XMLPullParser) EventType(t xml.Token) (event XMLEventType)
func (*XMLPullParser) Expect ¶
func (p *XMLPullParser) Expect(event XMLEventType, name string) (err error)
func (*XMLPullParser) ExpectAll ¶
func (p *XMLPullParser) ExpectAll(event XMLEventType, space string, name string) (err error)
func (*XMLPullParser) IsWhitespace ¶
func (p *XMLPullParser) IsWhitespace() bool
func (*XMLPullParser) Next ¶
func (p *XMLPullParser) Next() (event XMLEventType, err error)
func (*XMLPullParser) NextTag ¶
func (p *XMLPullParser) NextTag() (event XMLEventType, err error)
func (*XMLPullParser) NextText ¶
func (p *XMLPullParser) NextText() (string, error)
func (*XMLPullParser) NextToken ¶
func (p *XMLPullParser) NextToken() (event XMLEventType, err error)
func (*XMLPullParser) Skip ¶
func (p *XMLPullParser) Skip() error
Click to show internal directories.
Click to hide internal directories.