I'm working with xml api and trying to parse incoming documents. Documents have structures
<md>
<command n="status">
<item atr1="" atr2=""/>
</command>
</md>
<md>
<command n="check">
<item atr3="" atr4=""/>
</command>
</md>
All xml requests come to one URL. Is it the right way to parse attribute of the command tag and then to construct the right golang structure with <item atr1="" atr2=""/> or <item atr3="" atr4=""/>?
No comments:
Post a Comment