So heres the problem Im trying to parse an xml feed with images that come from a
ID: 666784 • Letter: S
Question
So heres the problem Im trying to parse an xml feed with images that come from a media gallery.. However the feed groups all the <img src="(some Url) all under one tag..like wtf is there a way to xmlpullparse all the"src" from the following code? I also provide a snippet of my parser below the feed. ANYYY help will be appreciated!
<content:encoded>
<![CDATA[
<a href="http://www.hiphoplede.com/newposts/wilkins-street-2/"><img src="http://i1.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-street1.jpg?resize=150%2C150" class="attachment-thumbnail" alt="ee" data-attachment-id="50" data-orig-file="http://i1.wp.com/www.hiphoplede.com/wp-content/
]]>
<![CDATA[
uploads/2015/08/wilkins-street1.jpg?resize=480%2C640" data-orig-size="480,640" data-comments-opened="1" data-image-meta="{"aperture":"2.4","credit":"","camera":"iPhone 5c","caption":"","created_timestamp":"1438194295","copyright":"","focal_length":"4.12","iso":"50","shutter_speed":"0.0048780487804878","title":"","orientation":"0"}" data-image-title="wilkins street" data-image-description="<p>imae</p> " data-medium-file="http://i1.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-street1.jpg?fit=300%2C300" data-large-file="http://i1.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-street1.jpg?fit=1024%2C1024" /></a> <a href="http://www.hiphoplede.com/newposts/wilkins-side/"><img src="http://i1.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-side.jpg?resize=150%2C150" class="attachment-thumbnail" alt="wilkins side" data-attachment-id="49" data-orig-file="http://i1.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-side.jpg?resize=480%2C640" data-orig-size="480,640" data-comments-opened="1" data-image-meta="{"aperture":"2.4","credit":"","camera":"iPhone 5c","caption":"","created_timestamp":"1438194336","copyright":"","focal_length":"4.12","iso":"50","shutter_speed":"0.0045454545454545","title":"","orientation":"0"}" data-image-title="wilkins side" data-image-description="" data-medium-file="http://i1.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-side.jpg?fit=300%2C300" data-large-file="http://i1.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-side.jpg?fit=1024%2C1024" /></a> <a href="http://www.hiphoplede.com/newposts/wilkins-frt-2/"><img src="http://i2.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-frt1.jpg?resize=150%2C150" class="attachment-thumbnail" alt="wilkins frt" data-attachment-id="48" data-orig-file="http://i2.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-frt1.jpg?resize=480%2C640" data-orig-size="480,640" data-comments-opened="1" data-image-meta="{"aperture":"2.4","credit":"","camera":"iPhone <img src="http://i2.wp.com/www.hiphoplede.com/wp-content/uploads/2015/08/wilkins-front1.jpg?resize=150%2C150" class="attachment-thumbnail" alt="wilkins front1" data-attachment-id="47" data-ori
My snippet:
but that snippet pertains to this feed:
Explanation / Answer
XMLHelper.java
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.