Documentation ¶
Overview ¶
Package xmlutil provides XML serialization of AWS requests and responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildXML ¶
BuildXML will serialize params into an xml.Encoder. Error will be returned if the serialization of any of the params or nested values fails.
func StructToXML ¶
StructToXML writes an XMLNode to a xml.Encoder as tokens.
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"` // contains filtered or unexported fields }
A XMLNode contains the values to be encoded or decoded.
func NewXMLElement ¶
NewXMLElement returns a pointer to a new XMLNode initialized to default values.
func XMLToStruct ¶
XMLToStruct converts a xml.Decoder stream to XMLNode with nested values.
Click to show internal directories.
Click to hide internal directories.