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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -