This project is read-only.
1

Resolved

ITunesSyndicationExtension generater itunes:image tag incorrectly

description

The extension ITunesSyndicationExtension generates/write incorrect XML for itunes:image element.

comments

dulfe wrote Jul 17, 2008 at 7:46 PM

The extension ITunesSyndicationExtension generates:
<itunes:image>http://images.cafepress.com/product/33230492v6_240x240_Front.jpg</itunes:image>
instead of
<itunes:image href="http://images.cafepress.com/product/33230492v6_240x240_Front.jpg" />
The work item http://www.codeplex.com/Argotic/WorkItem/View.aspx?WorkItemId=9767 indicates that this was fixed on the 2008.0.0.0 release… but I am using the version 2008.0.2.0 and the problem still exists.

dulfe wrote Jul 17, 2008 at 9:42 PM

Replacing the line #428 in ”ITunesSyndicationExtensionContext.cs”:

writer.WriteElementString("image", xmlNamespace, this.Image.ToString());

with:

writer.WriteStartElement("image", xmlNamespace);
writer.WriteAttributeString("href", this.Image.ToString());
writer.WriteEndElement();

Fixes it… but I do not know if this is the best to do it according to the framework programming guides… but at least it works until the “official fix” gets public.

Oppositional wrote Jul 23, 2008 at 2:38 AM

Thank you for the detailed information,fix has been checked in.

wrote Jul 23, 2008 at 2:38 AM

wrote Feb 14, 2013 at 8:26 PM

wrote May 16, 2013 at 10:58 AM

wrote May 16, 2013 at 10:58 AM

wrote Jun 14, 2013 at 8:16 AM