The previous post [5] shows how to parse OPML format, this post will show how
to parse it concisely by using > in tag. First we see what the official doc
in encoding/xml says about >:
Tip
If the XML element contains a sub-element whose name matches
the prefix of a tag formatted as "a" or "a>b>c", unmarshal
will descend into the XML structure looking for elements with the
given names, and will map the innermost elements to that struct
field. A tag starting with ">" is equivalent to one starting
with the field name followed by ">".
Difficult to understand above explanation without example. Now take a look at
the struct defined in previous example: