View Single Post
Old 03-30-2012, 05:51 PM   PM User | #1
crmpicco
Senior Coder

 
crmpicco's Avatar
 
Join Date: Jan 2005
Location: Mauchline, Scotland
Posts: 1,091
Thanks: 15
Thanked 1 Time in 1 Post
crmpicco has a little shameless behaviour in the past
Missing charset for text/xml document - w3 XML validation

I have an issue with my Google Product Feed where I am getting two warnings when using the W3 XML validator. The two warnings are:

Warning Missing "charset" attribute for "text/xml" document.
Warning No DOCTYPE found! Checking XML syntax only.

This is the top two lines of my XML file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0" charset="UTF-8">
I added the charset to the rss tag in an effort to clear the warnings. I passed the validation, but I think I need to clear these warnings for Google to accept the feed.

Thanks.
crmpicco is offline   Reply With Quote