Skip to content

Function that detects format #71

Open

Description

@kit-ty-kate

Is it possible to have such a function ? (at least one that could detect between RSS 1.0, RSS 2.0 and Atom)

Activity

  1. Chris00 commented on Aug 15, 2016

    @Chris00
    Contributor

    Well, you could try to parse it as RSS 2 and, if it fails, try RSS 1. Would you like something less "expensive"?

  2. kit-ty-kate commented on Aug 16, 2016

    @kit-ty-kate
    ContributorAuthor

    Well, the thing is, I think it would be more users friendly to expect users to not know about implementation/formats details (i.e. expect all three formats/parsing to be different in all cases).
    Also, efficiency can be a concern of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions