Xác thực XML
Để đảm bảo rằng Google có thể xử lý nguồn cấp dữ liệu của bạn, vui lòng 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 một số công cụ để
xác thực cấu trúc tệp XML của mình:
Bạn có thể sử dụng xmllint để xác thực nguồn cấp dữ liệu bằng lệnh này:
xmllint --schema http://www.google.com/shopping/reviews/schema/product/2.3/product_reviews.xsd \
--noout file.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: 2020-06-11 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2020-06-11 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"]]