Is there an official MRSS xsd?

心已入冬 提交于 2019-12-12 11:18:34

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/6509876/is-there-an-official-mrss-xsd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!