I have the following xml:
...
<solution>
<ContainerBlockElement>
<Paragraph>
<Paragraph>
Foo
</Paragraph>
<Paragraph>
bar
</Paragraph>
</Paragraph>
</ContainerBlockElement>
</solution>
...
I want to extract the content but the problem is: The server can send me the second structure:
...
<solution>
<ContainerBlockElement>
<Paragraph>
baz
</Paragraph>
</ContainerBlockElement>
</solution>
...
I've tried to use this struct in go to decode but it doesn't work:
type Blah struct {
...
Solutions []string `xml:"solution>ContainerBlockElement>Paragraph"`
Solutions2Paragraph []string `xml:"solution>ContainerBlockElement>Paragraph>Paragraph"`
}
How can I decode this?