XML Validation
Stay organized with collections
Save and categorize content based on your preferences.
To ensure that Google can process your feed, please use an XML schema validator
to ensure that your feed complies with the requirements of the schema before
submitting your feed to Google. Google will also verify that your feed complies
with the schema before accepting your feed.
There are a number of tools available to help you validate the structure of your
XML feed. One such tool is xmllint from www.xmlsoft.org.
You can use xmllint to validate your feed with this command:
xmllint --schema http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd --noout file.xml
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-08-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-08-11 UTC."],[[["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."]]],["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"]]