Android : Parsing Pictures and data from XML File

I have an xml file with this format:\[code\]<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><item><cache>0</cache><id>v_article_16276.html</id><article_id>16276</article_id><type>article</type><img>http://www.mywebsite.com/image.jpg</img><datePub><![CDATA[ 25.03.2013 | 17h37 | Par Fabrice Antonio ]]></datePub></item></channel></rss>\[/code\]i want to parse these data and the picture link also and to put them in a listView with an adapter;\[code\]<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="2dp" > <ImageView android:id="@+id/thumb" android:layout_width="60dp" android:layout_height="60dp" android:contentDescription="@string/app_name" android:src="http://stackoverflow.com/questions/15621463/@drawable/ic_launcher" /> <RelativeLayout android:layout_width="wrap_content" android:layout_height="60dp" android:layout_centerVertical="true" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_toLeftOf="@+id/arrow" android:layout_toRightOf="@+id/thumb" android:orientation="vertical" > <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="end" android:maxLines="2" android:text="@string/title" android:textSize="16sp" android:textStyle="bold" /> <TextView android:id="@+id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginTop="5dp" android:padding="2dp" android:text="@string/date" android:textColor="#7F7F7F" android:textSize="10sp" /> </RelativeLayout> <ImageView android:id="@+id/arrow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="5dp" android:contentDescription="@string/app_name" android:src="http://stackoverflow.com/questions/15621463/@drawable/arrow_next" /></RelativeLayout>\[/code\]the picture must takes the @+id/thumb ImageView,title takes @id/title TextView,pubdate takes @date TextViewThank you
 
Back
Top