Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { OnStart func(StartElement) OnEnd func(xml.EndElement) OnChar func(xml.CharData) // contains filtered or unexported fields }
A Decoder represents an XML parser reading a particular input stream. The parser assumes that its input is encoded in UTF-8.
func NewDecoder ¶
NewDecoder creates a new XML parser reading from r. If r does not implement io.ByteReader, NewDecoder will do its own buffering.
type Printer ¶
type Printer struct { *bufio.Writer AutoClose bool SkipAttrEscape bool // contains filtered or unexported fields }
func (*Printer) EscapeString ¶
EscapeString writes to p the properly escaped XML equivalent of the plain text data s.
func (*Printer) WriteStart ¶
func (p *Printer) WriteStart(start *xml.StartElement)
WriteStart writes the given start element.
type StartElement ¶
Click to show internal directories.
Click to hide internal directories.