private void addMetricsFromAttributes(XmlPullParser parser){
  int attrCount=parser.getAttributeCount();
  for (int i=0; i < attrCount; i++) {
    mMetrics.put(parser.getAttributeName(i),parser.getAttributeValue(i));
  }
}

private void addMetricsFromAttributes ( XmlPullParser parser ) { int attrCount = parser . getAttributeCount ( ) ; for ( int i = 0 ; i < attrCount ; i ++ ) { mMetrics . put ( parser . getAttributeName ( i ) , parser . getAttributeValue ( i ) ) ; } }
adds all attributes from the current xml tag to metrics as name - value pairs
