Documentation
¶
Overview ¶
Package xml is an XML converter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct{}
Converter for XML.
type Doc ¶
type Doc struct { Tag string `json:"tag_name,omitempty" yaml:"tag_name,omitempty" xml:"tag_name,omitempty"` Attributes map[string]string `json:"attributes,omitempty" yaml:"attributes,omitempty" xml:"attributes,omitempty"` Children []*Doc `json:"children,omitempty" yaml:"children,omitempty" xml:"children,omitempty"` Value string `json:"value,omitempty" yaml:"value,omitempty" xml:"value,innerxml"` }
Doc represents an XML tag and children. This is extremely primitive to keep things simple, thus this likely doesn't capture all edge cases.
func (*Doc) UnmarshalXML ¶
Click to show internal directories.
Click to hide internal directories.