Common issues with feed structure
We frequently encounter these common problems when dealing with XML files, if you can avoid these, it will make the process of implementing new feeds much faster:
No encoding of special characters such as
&
Make sure that all special characters are encoded as entities, or escaped viaCDATA
directive.
NOT VALID:<name>Black & White</name>
VALID:<name>Black & White</name>
<name><![CDATA[Black & White]]></name>
Double encoding of special character using both
CDATA
directive and entities
Example:<name><![CDATA[Black & White]]></name>
is syntatically valid, but theCDATA
directive will prevent special handling of XML entities, and the text will be parsed verbatim, in this caseBlack & White
. Use eitherCDATA
or entities, not both.