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

No to_xml for Rss2 module? #75

Open
sgrove opened this issue Oct 10, 2018 · 3 comments
Open

No to_xml for Rss2 module? #75

sgrove opened this issue Oct 10, 2018 · 3 comments
Assignees

Comments

@sgrove
Copy link

sgrove commented Oct 10, 2018

There seems to be a Syndic.Atom.to_xml: feed => Syndic_xml.t, but no corresponding Syndic.Rss2.to_xml.

I'd like to be able to serialize back out to a string the whole feed (or ideally even just the individual feed items). Perhaps I should be looking at some external serializing library?

@dinosaure dinosaure self-assigned this Oct 10, 2018
@Chris00
Copy link
Contributor

Chris00 commented Oct 10, 2018

In the meantime (while this is developed), why not convert it to an Atom feed and then to XML?

@sgrove
Copy link
Author

sgrove commented Nov 24, 2018

@Chris00 In this case, it's important that I keep the RSS2 format, and I'm not sure that RSS2 -> Atom -> XML -> RSS2 would actually round-trip. It would definitely work if I just used Atom, but that's not the interface I have unfortunately.

@Chris00
Copy link
Contributor

Chris00 commented Nov 24, 2018

OK, I understand. I do not have much time to work on this ATM unfortunately — maybe @dinosaure has? If you cannot contribute a PR, could you at least provide a file testing all features of RSS2 so we can use it as a round trip test. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants