罗马 RSS - 禁用罗马 RSS 中的验证
在我的应用程序中,ROME api 尝试根据 W3C 中的 DTD 验证提要,但一段时间后它会失败,因为 W3C 阻止了该 IP。
有没有办法可以在 ROME 中禁用 XML 提要验证?
RSS XML 验证不是必需的,因为我们从一家信誉良好的公司获取提要
In my application ROME api tries to validate the feed against and DTD in W3C and after some time it fails since W3C blocks that IP.
Is there a way that I can disable XML feed validation in ROME?
RSS XML validation is not neccessary since we get the feed from a well reputed company
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以试试这个吗?
这个想法是首先将 XML 解析为文档,然后将该文档传递给 SyndFeedInput。使用 DocumentBuilder 进行解析不会根据 DTD 进行验证。
can you try this?
the idea is to first parse the XML into a Document and then pass that document to the SyndFeedInput. parsing with the DocumentBuilder doesn't validate against a DTD.