Hi Guys , i need Weather Updates in my applications. for this purpose, m using this api
http://api.wxbug.net/getLiveWeatherRSS.aspx?ACode=A4345374462&lat=28.6484223&long=77.1265769&unittype=1 Everything is fine with this api, its gives correct xml tags, i need only <aws:weather xmlns:aws="http://www.aws.com/aws"> <aws:api version="2.0" /> <aws:WebURL>http://weather.weatherbug.com/India/DelhiCantonment-weather.html?ZCode=Z5546&Units=1&stat=VIDP</aws:WebURL> </aws:weather> My main problem is that i cant fetch the value of <aws:WebURL> using this code. * public * *void* startElement(String uri, String localName, String qName, Attributes attributes) *throws* SAXException { // reset tempVal = ""; *if*(localName.equalsIgnoreCase("aws:weather")) { track=*new* Track(); Log.*d*("**************","coming in current conditions tag; :"); } } *public* *void* characters(*char*[] ch, *int* start, *int* length) *throws* SAXException { tempVal = *new* String(ch, start, length); } *public* *void* endElement(String uri, String localName, String qName) *throws* SAXException { *if*(localName.equals("aws:weather")) { phonebooklist.addElement((track)); Log.*d*("*******************","ending of aws wheather tag; :"); } *else* *if* * * (localName.equalsIgnoreCase("aws:WebURL")) { { track.setwebUrl(tempVal); Log.*d*("+++++++++++++++++++", "WebUrl:"+tempVal); } } ............ Now suggest me how to fetch this webUrl's value. if i will fetch this value , i will fetch all values. Please suggest, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en