This is how I am parsing it for single image url

ArrayList<Data> mData = new ArrayList<Data>();


@Override

public void characters(char ch[], int start, int length) throwsSAXException 

 {

                mData.get(mCount).mImageUrl = new String(ch, start, length);

}


This works fine for a single image url.

How can I parse for more than one image url?





On Wednesday, December 25, 2013 1:52:39 AM UTC-5, Danny D wrote:
>
> Not 100℅ understanding your question.  How familiar with SAX are you?  You 
> should be handling the start element and end element for each <imageurl>, 
> put them into a list of either String or URL or URI objects.  For the 
> latter two, you'll need to add the host and any path stuff. 
>
> There are lots of SAX parsing tutorials to show you some techniques.  In 
> general, you're parser is going to keep eating the imageurl objects until 
> they're done.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to