I query a device and it returns an XML output with the number of alerts. I want to store each alert as a struct and store all the alerts in a slice.
I have looked through a number of answers for a similar problem but I am having a hard time finding how to parse the attributes of each msg tag and put the attributes into the struct.
Example Code: https://play.golang.org/p/XZMONjRc5q1