But we can't create ArrayList at runtime right.

I am not able to find a different approach too.
 :(

Regards,
Shruthi.



On Wed, Jul 13, 2011 at 9:43 AM, Durgadoss Ramanathan <[email protected]
> wrote:

> You can try ArrayList data structure...
>
> On Tue, Jul 12, 2011 at 7:55 PM, Shruthi Varma 
> <[email protected]>wrote:
>
>> Hi All,
>>
>> I have to parse the xml pasted below and store all the images
>> under <preview_images> tag under <magazine> tag in one Array.
>>
>> If there was only one <magazine> tag, It would be a simple job, to create
>> an array and store all the images in it.
>>
>> But there can be 1 or more than 1 magazines.
>>
>> I have to create separate arrays for each magazine's images.
>>
>> So, I don't know how to create arrays at run time depending on the number
>> of magazines.
>>
>> Please help.
>>
>> Regards,
>> Shruthi.
>>
>>
>>
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <new_arrivals> <http://magazine.ateemo.com/magazines/new_arrivals#><
>> magazine> <http://magazine.ateemo.com/magazines/new_arrivals#><mid>3</mid
>> > <description>Carpenter Test Mag</description><no_of_pages>5</
>> no_of_pages><author>Test</author><publisher_name>N/A</publisher_name><
>> published_date>2011-06-29 00:00:00 UTC</published_date><payed_yn>true</
>> payed_yn><no_of_images>5</no_of_images><preview_images><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <image> <http://magazine.ateemo.com/magazines/new_arrivals#><iid>118</iid
>> ><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/11/10.png?1309344384</
>> image_url></image><image><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <iid>118</iid><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/12/11.png?1309344422</
>> image_url></image><image><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <iid>118</iid><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/13/12.png?1309344507</
>> image_url></image><image><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <iid>118</iid><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/14/13.png?1309344544</
>> image_url></image><image><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <iid>118</iid><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/15/14.png?1309344728</
>> image_url></image></preview_images></magazine><magazine><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <mid>2</mid> <description>Blue Print Test Mag</description><no_of_pages>5
>> </no_of_pages><author>Test</author><publisher_name>N/A</publisher_name><
>> published_date>2011-06-29 00:00:00 UTC</published_date><payed_yn>true</
>> payed_yn><no_of_images>5</no_of_images><preview_images><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <image> <http://magazine.ateemo.com/magazines/new_arrivals#><iid>118</iid
>> ><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/6/10.png?1309344030</
>> image_url></image><image><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <iid>118</iid><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/7/11.png?1309344062</
>> image_url></image><image><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <iid>118</iid><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/9/13.png?1309344157</
>> image_url></image><image><http://magazine.ateemo.com/magazines/new_arrivals#>
>> <iid>118</iid><image_url>
>> http://magazine.ateemo.com/uploads/issue_images/10/14.png?1309344193</
>> image_url></image></preview_images></magazine></new_arrivals>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards
> Durgadoss
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to