xml like this
<?xml version="1.0" encoding="utf-8"?>
<root>
<channel id="1">
<item></item>
<item></item>
<item></item>
</channel>
</root>
will get structs like that
type Root struct {
Channel Channel `xml:"channel"`
Item []string `xml:"channel>item"`
}
type Channel struct {
Id string `xml:"id,attr"`
}
This one have a conflict path,the correct from should be
type Root struct {
Channel Channel `xml:"channel"`
}
type Channel struct {
Id string `xml:"id,attr"`
Item []string `xml:"item"`
}
Remove the conflict is a tough job with current data struct.
So I'm working a new version that can handle both nesting style and non-nesting style(without conflict).
xml like this
will get structs like that
This one have a conflict path,the correct from should be
Remove the conflict is a tough job with current data struct.
So I'm working a new version that can handle both nesting style and non-nesting style(without conflict).