XML 驗證
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
為確保 Google 可順利處理你的動態饋給,請先使用 XML 架構驗證工具來檢查動態饋給,接著再提交動態饋給。您可以使用 xmllint 透過下列指令驗證動態饋給:
xmllint --schema http://www.google.com/shopping/reviews/schema/product/2.4/product_reviews.xsd \
--noout file.xml
替代方案
你可以使用多種工具驗證 XML 檔案的結構:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eGoogle Shopping requires XML data feeds to adhere to a specific XML schema for successful processing.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003exmllint\u003c/code\u003e command with the provided schema URL to validate your XML feed before submission.\u003c/p\u003e\n"],["\u003cp\u003eSeveral alternative tools for XML schema validation are available, including those listed from W3C, Altova, Oxygen, and libxml2.\u003c/p\u003e\n"]]],["Validate XML feeds before submitting to Google using an XML schema validator. The `xmllint` command with the Google schema URL verifies the feed structure: `xmllint --schema http://www.google.com/shopping/reviews/schema/product/2.3/product_reviews.xsd --noout file.xml`. Alternative tools for XML validation include resources from W3C, Altova XMLSpy, oXygen XML Editor, and `xmllint` from `libxml2`. These tools help check the structure and validity of the XML files.\n"],null,["# XML Validation\n\nTo ensure that Google can process your feed, use an XML schema validator\nbefore submitting your feed. You can use xmllint to validate your feed with\nthis command: \n\n xmllint --schema http://www.google.com/shopping/reviews/schema/product/2.4/product_reviews.xsd \\\n --noout file.xml\n\nAlternatives\n------------\n\nThere are a number of tools available to help you validate the structure of\nyour XML files:\n\n- [W3C list of XML schema tools](http://www.w3.org/XML/Schema#Tools)\n- [Altova XMLSpy XML Editor](http://www.altova.com/xmlspy.html)\n- [oXygen XML Editor](http://www.oxygenxml.com/)\n- [xmllint](http://xmlsoft.org/xmllint.html) from [libxml2](http://www.xmlsoft.org/)"]]