You will notice that in many cases, the XML elements have generic name tags such as "Metric" and the real identifier is carried on the name attribute of the generic element.
For example, to get the value of a specific metric element, such as the current value of the monitored metric, we have to check each metric element until we find the one with the right name attribute.