XML 驗證
為確保 Google 可順利處理您的動態饋給,請先使用 XML 架構驗證工具來確保動態饋給符合結構定義中的規定,再將動態饋給提交給 Google。Google 也會在接受動態饋給之前,驗證您的動態饋給是否符合結構定義。
有多種工具可用來驗證 XML 動態饋給的結構。其中一種工具是 www.xmlsoft.org 中的 XML。
您可以使用 xmllint 透過這個指令驗證動態消息:
xmllint --schema http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd --noout file.xml
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-08-11 (世界標準時間)。
[null,null,["上次更新時間: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."]]],[]]