Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function that detects format #71

Open
kit-ty-kate opened this issue Aug 15, 2016 · 2 comments
Open

Function that detects format #71

kit-ty-kate opened this issue Aug 15, 2016 · 2 comments

Comments

@kit-ty-kate
Copy link
Member

kit-ty-kate commented Aug 15, 2016

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

@Chris00
Copy link
Contributor

Chris00 commented Aug 15, 2016

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

@kit-ty-kate
Copy link
Member Author

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
Projects
None yet
Development

No branches or pull requests

2 participants