string parsing to get an attribute java android -


i programming in android , getting xml data through soap placing in string object. want id's , put them in array. how do ?????? code below, want values 1101, 1103 in array..... please

<getavailablespotresult>          <garage id=1 name='south garage' address='100 acme dr' city='san jose' state='ca' zip='95052'>             <floor number='1'>                <spot id='1101' status='available'/>                <spot id='1103' status='available'/>             </floor>          </garage>       </getavailablespotresult> 

you need parse xml required data. if google, "how parse xml in java android", you'll lots of results. first try , read official documentation on parsing xml data , see examples.

you can check out other similar questions how read xml file in android , read xml file in android. can try this tutorial.

please try atleast google or see previous answers before asking question. if there specific problem facing, happy help.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -