Skip to main content
Inspiring
August 4, 2010
Question

CFFEED & Namespace Declaration

  • August 4, 2010
  • 1 reply
  • 693 views

I would appreciate some help with generating rss feed for Google Merchant.  I am trying to use cffeed to generate the xml file which I am good with.  The issue is formatting it to google's specifications and their namespace declaration (<g:price></g:rpice>)  how to set a xml structure to include g:  in front of the names?

Here is a sample of googe xml structure:

<?xml version="1.0"?>
<rss version="2.0"
xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>The name of your data feed</title>
<link>http://www.example.com</link>
<description>A description of your content</description>
<item>
<title>Red wool sweater</title>
<link> http://www.example.com/item1-info-page.html</link>
<description>Comfortable and soft, this sweater will keep you warm on those cold winter nights.</description>
<g:image_link>http://www.example.com/image1.jpg</g:image_link>
<g:price>25</g:price>
<g:condition>new</g:condition>
<g:id>1a</g:id>
</item>
</channel>
</rss>
This topic has been closed for replies.

1 reply

TiGGiAuthor
Inspiring
August 27, 2010

Anyone?

Inspiring
August 28, 2010

I had a google around, and as far as I can tell it cannot be done with <cffeed> (*).  Just use <cfxml> instead, I reckon.

And maybe raise an issue with Adobe: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html.  If you do so, and post the bug ref back here, I'll vote for it too :-)

--

Adam

(*) http://www.coldfusionjedi.com/index.cfm/2008/4/23/Ask-a-Jedi-Handling-RSS-feeds-with-custom-data.  Ray's pretty clued up about these things, so I'd take his word for it.