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

<p>






      </p>

<p>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..</p>

<p>right now i m doing like that </p>

<pre><code>   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>
