XML Validation
To ensure that Google can process your feed, use an XML schema validator
before submitting your feed. You can use xmllint to validate your feed with
this command:
xmllint --schema http://www.google.com/shopping/reviews/schema/product/2.3/product_reviews.xsd \
--noout file.xml
Alternatives
There are a number of tools available to help you validate the structure of
your XML files:
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 2024-04-29 UTC.
[null,null,["Last updated 2024-04-29 UTC."],[[["Google Shopping requires XML data feeds to adhere to a specific XML schema for successful processing."],["Use the `xmllint` command with the provided schema URL to validate your XML feed before submission."],["Several alternative tools for XML schema validation are available, including those listed from W3C, Altova, Oxygen, and libxml2."]]],["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"]]