Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultMode treats incoming elements as provided from raw byte reader. DefaultMode = ParsingMode(iota) // SocketStream treats incoming elements as provided from a socket transport. SocketStream )
Variables ¶
View Source
var ErrStreamClosedByPeer = errors.New("parser: stream closed by peer")
ErrStreamClosedByPeer will be returned by Parse when stream closed element is parsed.
View Source
var ErrTooLargeStanza = errors.New("parser: too large stanza")
ErrTooLargeStanza will be returned Parse when the size of the incoming stanza is too large.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses arbitrary XML input and builds an array with the structure of all tag and data elements.
type ParsingMode ¶
type ParsingMode int
ParsingMode defines the way in which special parsed element should be considered or not according to the reader nature.
Click to show internal directories.
Click to hide internal directories.