java - Android XML Parsing: Parse this special Type of XML i have no Idia about this -
this xml url
http://www.eboundservices.com/distribution/vod_new.xml
how parse in android
<aajkamrankhankaysath p0201="" p0801="" p0901="" p1501="" p1601="" p2201="" p2301="" p2901="" p3001="" p0702="" p2102="" p0303="" p0403="" p0603="" p1003="" p1103="" p1203="" p1303="" p1703="" p1803="" p1903="" p2003="" p2403="" p2503="" p2603="" p2703="" p2803="" p3103="" p0104="" p0204="" p0304="" p0404="" p0704="" p0804="" p0904="" p1004="" p1104="" p1404="" p1504="" p1604="" p1704="" p1804="" p2104="" p2204="" p2304="" p2404="" p2804="" p2904="" p3004="" p0105="" p0205="" p0505="" p0605="" p0705="" p0805="" p0905="" p1205="" p1305="" p1405="" p1505="" p1605="" p1905="" p2005="" p2105="" p2205="" p2305="" p2705="" p2805="" p2905="" p3005="" p0206="" p0306="" p0406="" p0506="" p2306="" p2406="" p2506="">25</aajkamrankhankaysath>
i want like: p0201, p0801, p0901, p1501, p1501... , on
i want save in arraylist, mean tag <> info in aaarylist respectively
first of these attributes has mentioned. bad thought have such badly formed xml, if web-service big can see it's beingness developed in bad manner. personal opinions aside, need create own class in order populate list of objects. need read through every node, , populate every attribute manually , no short cutting work(as far know).
public class tvnode { string p0210; string p0801; string p0901; // on forth, define string mmembers every attribute public tvnode() { } public void setp0210(string _p0210) { } public void setp0801(string _p0801) { } public void setp0901(string _p0901) { } // , getters of course of study }
you'll have list of tvnode type, you'll read xml either file or web-response , 1 time have you'll need parse using type of xmldomparser. hope helps.
java php android xml xml-parsing
No comments:
Post a Comment