XML : XMLPullParser issue reading content tag

I'm trying to parse an xml rss (http://feeds.feedburner.com/elandroidelibre) and I'm having problems reading the content tag. My code for reading the tag is this

  parser.require(XmlPullParser.START_TAG, ns, tag);  if (parser.next() == XmlPullParser.TEXT) {  result = parser.getText();  parser.nextTag();  }  parser.require(XmlPullParser.END_TAG, ns, tag);    

And the problem is that while the content starts with an image, the parser is ignoring it. For example:

  <content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><p><img class="aligncenter size-full wp-image-273628" src="http://www.elandroidelibre.com/wp-content/uploads/2016/10/pasar-icloud-google-fotos-01.jpg" alt="Pasar de iCloud a Google Fotos" width="750" height="382" srcset="http://www.elandroidelibre.com/wp-content/uploads/2016/10/pasar-icloud-google-fotos-01.jpg 750w, http://www.elandroidelibre.com/wp-content/uploads/2016/10/pasar-icloud-google-fotos-01-450x229.jpg 450w" sizes="(max-width: 750px) 100vw, 750px" /></p>  <p>Que el de <strong>Apple</strong> es un ecosistema celosamente...  

Will give me "Que el de Apple es un ecosistema...." instead of starting with the img tag.

Thanks for your help.

No comments:

Post a Comment