title: get data using webservice android
body: <p>I have data on a server which stores name and images.
  I want to retrieve that from server and display in table layout on Android.</p>
  
  <p>I wonder which is the best xmlparsing or json parsing for that purpose.
  Is there any tutorial for that?</p>
  
  <pre><code>if($_REQUEST['mode']=="get")
  {
   $result = mysql_query("SELECT state,imageurl FROM `pic_upload`");
  
          while($row = mysql_fetch_assoc($result))
          {
                  $output=$row;
  
                  print(json_encode($output));
  
          }
          mysql_close;
   }
  </code></pre>
  
  <p>using this i will get data from server but how to get data using xml parsing any one know   </p>