hello ,i am making my first client server program to read some text or news from server through url
<pre><code>try {
     doc = db.parse(str);
    } catch (SAXException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
    } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
    }


           Element root = doc.getDocumentElement();
           NodeList recipesList = root.getChildNodes();
           for (int i = 0; i &lt; recipesList.getLength(); i++) {
      Node recipe = recipesList.item(i);
      NodeList fields = recipe.getChildNodes();
      String title = ((Element) fields.item(0)).getNodeValue();
      String description = 
       ((Element) fields.item(1)).getNodeValue();
    tv.setText(title);
    tv.setText(description);
</code></pre>
