Class RSS20wNSParser

  • All Implemented Interfaces:
    WireFeedParser

    public class RSS20wNSParser
    extends RSS20Parser
    To address issue with certain feeds (brought up by Charles Miller): "During the debacle that was the rollout of RSS2.0, this namespace was tried, and even appeared in Dave Winer's Scripting News feed for a while. It was then withdrawn, but the wonderful thing about standards is the moment you roll one out, even if it's marked as unfinished and subject to change, someone will end up stuck with it forever." Note that there is not counter part on the generator, we only generate the final RSS2
    • Constructor Detail

      • RSS20wNSParser

        public RSS20wNSParser()
      • RSS20wNSParser

        protected RSS20wNSParser​(String type)
    • Method Detail

      • isMyType

        public boolean isMyType​(org.jdom2.Document document)
        Description copied from interface: WireFeedParser
        Inspects an XML Document (JDOM) to check if it can parse it.

        It checks if the given document if the type of feeds the parser understands.

        Specified by:
        isMyType in interface WireFeedParser
        Overrides:
        isMyType in class RSS20Parser
        Parameters:
        document - XML Document (JDOM) to check if it can be parsed by this parser.
        Returns:
        true if the parser know how to parser this feed, false otherwise.
      • getRSSNamespace

        protected org.jdom2.Namespace getRSSNamespace()
        Description copied from class: RSS090Parser
        Returns the namespace used by RSS elements in document of the RSS version the parser supports.

        This implementation returns the EMTPY namespace.

        Overrides:
        getRSSNamespace in class RSS091UserlandParser
        Returns:
        returns the EMPTY namespace.
      • parseChannel

        protected WireFeed parseChannel​(org.jdom2.Element rssRoot,
                                        Locale locale)
        After we parse the feed we put "rss_2.0" in it (so converters and generators work) this parser is a phantom.
        Overrides:
        parseChannel in class RSS094Parser
        Parameters:
        rssRoot - the root element of the RSS document to parse.
        Returns:
        the parsed Channel bean.