Atom 到 RSS 提要

发布于 2024-09-27 20:02:49 字数 226 浏览 0 评论 0原文

我在 websphere 门户中有一个 RSS 阅读器 portlet,它添加 RSS 提要并在其上呈现提要项目。我还需要在现有代码中添加 Atom feed。我们使用第三方 API 来解析提要 URL、添加它并在 portlet 上呈现新闻项。需要在我的 Java 代码中添加一些逻辑来初步识别 Atom 提要并将其转换为 RSS 提要。

我使用转换器(很容易在线获得)尝试了相同的操作,但不知道如何将逻辑集成到代码中。

I have an RSS reader portlet in websphere portal, which adds the RSS feed and renders the feed items on it. I need to add Atom feeds also in the existing code. We use a third party API to parse the feed URL, add it and render the news items on the portlet. Need to add some logic in my Java code to initially recognize the Atom feed and convert it into RSS feed.

I tried the same using an converter (easily available online), but don't know how to integrate the logic in code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

提笔落墨 2024-10-04 20:02:49

我不确定我是否正确理解了您的问题,但如果您需要在各种提要格式之间进行转换,我的建议是使用

I'm not sure I understood your question properly but if you need to do conversions between various feed formats, my recommendation would be to use Rome.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文