xmlutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildXML

func BuildXML(params interface{}, e *xml.Encoder) error

func StructToXML

func StructToXML(e *xml.Encoder, node *XMLNode, sorted bool) error

func UnmarshalXML

func UnmarshalXML(v interface{}, d *xml.Decoder, wrapper string) error

Types

type XMLNode

type XMLNode struct {
	Name     xml.Name              `json:",omitempty"`
	Children map[string][]*XMLNode `json:",omitempty"`
	Text     string                `json:",omitempty"`
	Attr     []xml.Attr            `json:",omitempty"`
}

func NewXMLElement

func NewXMLElement(name xml.Name) *XMLNode

func XMLToStruct

func XMLToStruct(d *xml.Decoder, s *xml.StartElement) (*XMLNode, error)

func (*XMLNode) AddChild

func (n *XMLNode) AddChild(child *XMLNode)

Jump to

Keyboard shortcuts

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