Documentation
¶
Overview ¶
Package xml implements a simple XML 1.0 parser that understands XML name spaces.
Index ¶
- Constants
- Variables
- func Escape(w io.Writer, s []byte)
- func EscapeText(w io.Writer, s []byte) error
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func Unmarshal(data []byte, v interface{}) error
- type Attr
- type CharData
- type Comment
- type Decoder
- type Directive
- type Encoder
- type EndElement
- type Marshaler
- type MarshalerAttr
- type Name
- type ProcInst
- type StartElement
- type SyntaxError
- type TagPathError
- type Token
- type UnmarshalError
- type Unmarshaler
- type UnmarshalerAttr
- type UnsupportedTypeError
- Bugs
Examples ¶
Constants ¶
View Source
const ( // A generic XML header suitable for use with the output of Marshal. // This is not automatically added to any output of this package, // it is provided as a convenience. Header = `<?xml version="1.0" encoding="UTF-8"?>` + "\n" )
Variables ¶
View Source
var HTMLAutoClose = htmlAutoClose
HTMLAutoClose is the set of HTML elements that should be considered to close automatically.
View Source
var HTMLEntity = htmlEntity
HTMLEntity is an entity map containing translations for the standard HTML entity characters.