0

I am trying to use the API for our system in an Android Application. I have this XML :

<item>
    <title>Title 1</title>
    <description>
        <table>
            <tr>
                <td><img src="http://abc.com/image1.jpg" width='80' height='80' /></td>
                <td>This is summary 1</td>
            </tr>
        </table>
    </description>
    <link>http://abc.com</link>
    <pubDate>Wed, 13 Mar 2013 13:42:42 +0700</pubDate>
</item>

Plz show me how to get elements in tag < description> using SAXParser:

  • Element 1

    src="http://abc.com/image1.jpg"

  • Element 2

    <td> This is summary for title 1</td>

Community
  • 1
  • 1
green.android
  • 731
  • 3
  • 7
  • 22

1 Answers1

0

There is a whole package for using a SaxParser here: http://developer.android.com/reference/android/sax/package-summary.html

Please see here for tutorial: How to parse XML using the SAX parser

Community
  • 1
  • 1
AlexVogel
  • 10,601
  • 10
  • 61
  • 71