XML 验证
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
为确保 Google 能够处理您的 Feed,请先使用 XML 架构验证程序确保您的 Feed 符合架构要求,然后再向 Google 提交 Feed。Google 还会先验证您的 Feed 是否符合架构,然后再接受您的 Feed。
您可以使用多种工具来验证 XML Feed 的结构。其中一种工具是 www.xmlsoft.org 提供的 xmllint。
您可以使用 xmllint 通过以下命令验证 Feed:
xmllint --schema http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd --noout file.xml
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eGoogle requires your feed to comply with the specified XML schema for processing.\u003c/p\u003e\n"],["\u003cp\u003eBefore submission, validate your feed using an XML schema validator like xmllint to ensure compliance.\u003c/p\u003e\n"],["\u003cp\u003eGoogle uses the merchant_reviews.xsd schema located at \u003ccode\u003ehttp://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd\u003c/code\u003e for validation.\u003c/p\u003e\n"],["\u003cp\u003eThe command \u003ccode\u003exmllint --schema http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd --noout file.xml\u003c/code\u003e can be used for validation with xmllint.\u003c/p\u003e\n"]]],["Feed validation is crucial for Google processing. Utilize an XML schema validator to confirm your feed's compliance before submission. Google also validates feeds against the schema. Tools like `xmllint` (from xmlsoft.org) assist in this process. The command `xmllint --schema http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd --noout file.xml` validates your feed (`file.xml`) using Google's specified schema.\n"],null,["# XML Validation\n\nTo ensure that Google can process your feed, please use an XML schema validator\nto ensure that your feed complies with the requirements of the schema before\nsubmitting your feed to Google. Google will also verify that your feed complies\nwith the schema before accepting your feed.\n\n\nThere are a number of tools available to help you validate the structure of your\nXML feed. One such tool is xmllint from [www.xmlsoft.org](http://www.xmlsoft.org).\n\n\nYou can use xmllint to validate your feed with this command: \n\n```world-of-warcraft-toc\nxmllint --schema http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd --noout file.xml\n```"]]