way to parse the value in attribute using PullParser
<p>I want to parse the google weather Api response..
     the response is like :</p>

<pre><code>  &lt;current_conditions&gt;
  &lt;condition data="Haze"/&gt;
  &lt;temp_f data="82"/&gt;
  &lt;temp_c data="28"/&gt;
  &lt;humidity data="Humidity: 94%"/&gt;
  &lt;icon data="/ig/images/weather/haze.gif"/&gt;
  &lt;wind_condition data="Wind: SW at 12 mph"/&gt;
  &lt;/current_conditions&gt;      

     now i want only temp_c data to use in my app. 
     so how can i get the value of temp using xml pull parser..

     right now i m doing like that 

   StringBufferInputStream buffer = new StringBufferInputStream(response);
        xpp = XmlPullParserFactory.newInstance().newPullParser();
        xpp.setInput(buffer, null);
        int eventType = xpp.getEventType();
        while(eventType != XmlPullParser.END_DOCUMENT)
        {


            if(eventType == XmlPullParser.START_TAG){

                String elementName = xpp.getName();
                if(elementName.equals("current_conditions")){
                    local_pickup = xpp.nextText();
                    Log.d("database", local_pickup);
                }
                       }
                   eventType = xpp.next();
        }
        buffer.close();
</code></pre>

<p>please help me guys as early as possible</p>
