Get media content tags from RSS feeds

376 Views Asked by At

As weird as it seems when parsing entries from I cannot find an easy when to get <media:content> from RSS feed without parsing XML document with a library.

I cannot find media content either in enclosures or markups.

For example for feed https://www.forbes.com/energy/feed/. I have no enclosures or markups in FeedEntryImpl

Why that ?

1

There are 1 best solutions below

0
On

You should only read it as content since the parser ignores media: and reads the tag only as < content > but without the spaces, it works for all tags that have tag that has semicolon in it, it only reads the part of the tag after the semicolon