有官方的 MRSS xsd 吗?
我正在尝试根据官方 mrss xsd(可能来自雅虎)验证 mrss feed,但找不到。我一直在使用 http://yarfraw.sourceforge.net/xsd/extension/mrss 中的一个.xsd 但我不确定这有多可靠。当我使用上面的 xsd 时,javax.xml.validation 包抛出此异常: 抛出异常的行: Schema schema = factory.newSchema(new File("mrss.xsd 的路径"));
例外: org.xml.sax.SAXParseException:src-resolve:无法将名称“dcterms:valid”解析为(n)“元素声明”组件。
I am trying to validate mrss feeds against an official mrss xsd, maybe from yahoo, but couldn't find one. I have been using one from http://yarfraw.sourceforge.net/xsd/extension/mrss.xsd but I am not sure how reliable this is. the javax.xml.validation package throws this exception when I use the above xsd:
the line that throws the exception:
Schema schema = factory.newSchema(new File("path to mrss.xsd"));
Exception:
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'dcterms:valid' to a(n) 'element declaration' component.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是它正在寻找的都柏林核心。您应该能够使用 http://dublincore.org/schemas /xmls/qdc/2008/02/11/dcterms.xsd 解析该名称。
That's the Dublin Core it's looking for. You should be able to use http://dublincore.org/schemas/xmls/qdc/2008/02/11/dcterms.xsd to resolve that name.