开发者

Is there an official MRSS xsd?

I am trying to validate mrss feeds against an official mrss xsd, maybe from yahoo, but couldn't find one. I have be开发者_JAVA技巧en 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜