Help us shape the future of Go! Take the 2026 Go Developer Survey

xml

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrInvalidDocument invalid document err
	ErrInvalidDocument = errors.New("invalid document")

	//ErrInvalidRoot data at the root level is invalid err
	ErrInvalidRoot = errors.New("data at the root level is invalid")
)

Functions

func ProcessDecode

func ProcessDecode(process *process.Process) interface{}

ProcessDecode xml Decode

func ProcessEncode

func ProcessEncode(process *process.Process) interface{}

ProcessEncode xml Encode

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder instance

func NewDecoder

func NewDecoder(reader io.Reader) *Decoder

NewDecoder create new decoder instance

func NewDecoderWithPrefix

func NewDecoderWithPrefix(reader io.Reader, attrPrefix, textPrefix string) *Decoder

NewDecoderWithPrefix create new decoder instance with custom attribute prefix and text prefix

func (*Decoder) Decode

func (d *Decoder) Decode() (map[string]interface{}, error)

Decode xml string to map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL