Xác thực XML
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Để đảm bảo rằng Google có thể xử lý nguồn cấp dữ liệu của bạn, hãy sử dụng trình kiểm tra lược đồ XML trước khi gửi nguồn cấp dữ liệu. Bạn có thể sử dụng xmllint để xác thực nguồn cấp dữ liệu bằng lệnh sau:
xmllint --schema http://www.google.com/shopping/reviews/schema/product/2.4/product_reviews.xsd \
--noout file.xml
Phương án thay thế
Có một số công cụ giúp bạn xác thực cấu trúc của tệp XML:
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\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/)"]]