XML 验证
为确保 Google 能够处理您的 Feed,请在将 Feed 提交给 Google 之前,先使用 XML 架构验证程序验证 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):2023-08-11。
[null,null,["最后更新时间 (UTC):2023-08-11。"],[[["Google requires your feed to comply with the specified XML schema for processing."],["Before submission, validate your feed using an XML schema validator like xmllint to ensure compliance."],["Google uses the merchant_reviews.xsd schema located at `http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd` for validation."],["The command `xmllint --schema http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd --noout file.xml` can be used for validation with xmllint."]]],[]]