Skip to main content
deleted 1 character in body
Source Link

I've followed ET documentation regarding pulling data from RSS feed to email that can be found here:

http://help.exacttarget.com/en/documentation/exacttarget/content/ampscript/how_to_include_an_rss_feed_in_an_email_message_using_ampscript/

I've created simple code:

%%[
SET @xmlTemp = ContentAreaByName("my contents\XML\XMLtest")
SET @xml = Replace(@xmlTemp, "content:encoded", "contentencoded")
SET @titles = BuildRowsetFromXML(@xml,"//item/title",1)
]%%

%%=Field(Row(@titles, 1), 'Value'))=%%

It works fine when it's implemented in landing page but generates error when it's used in email. I tried to wrap output into TreatAsContent() but still nothing

I've followed ET documentation regarding pulling data from RSS feed to email that can be found here:

http://help.exacttarget.com/en/documentation/exacttarget/content/ampscript/how_to_include_an_rss_feed_in_an_email_message_using_ampscript/

I've created simple code:

%%[
SET @xmlTemp = ContentAreaByName("my contents\XML\XMLtest")
SET @xml = Replace(@xmlTemp, "content:encoded", "contentencoded")
SET @titles = BuildRowsetFromXML(@xml,"//item/title",1)
]%%

%%=Field(Row(@titles, 1), 'Value'))=%%

It works fine when it's implemented in landing page but generates error when it's used in email. I tried to wrap output into TreatAsContent() but still nothing

I've followed ET documentation regarding pulling data from RSS feed to email that can be found here:

http://help.exacttarget.com/en/documentation/exacttarget/content/ampscript/how_to_include_an_rss_feed_in_an_email_message_using_ampscript/

I've created simple code:

%%[
SET @xmlTemp = ContentAreaByName("my contents\XML\XMLtest")
SET @xml = Replace(@xmlTemp, "content:encoded", "contentencoded")
SET @titles = BuildRowsetFromXML(@xml,"//item/title",1)
]%%

%%=Field(Row(@titles, 1), 'Value')=%%

It works fine when it's implemented in landing page but generates error when it's used in email. I tried to wrap output into TreatAsContent() but still nothing

edited tags
Link
Samuel De Rycke
  • 9.6k
  • 8
  • 46
  • 73
Source Link

AmpScript - RSS Feed in email using BuildRowsetFromXML()

I've followed ET documentation regarding pulling data from RSS feed to email that can be found here:

http://help.exacttarget.com/en/documentation/exacttarget/content/ampscript/how_to_include_an_rss_feed_in_an_email_message_using_ampscript/

I've created simple code:

%%[
SET @xmlTemp = ContentAreaByName("my contents\XML\XMLtest")
SET @xml = Replace(@xmlTemp, "content:encoded", "contentencoded")
SET @titles = BuildRowsetFromXML(@xml,"//item/title",1)
]%%

%%=Field(Row(@titles, 1), 'Value'))=%%

It works fine when it's implemented in landing page but generates error when it's used in email. I tried to wrap output into TreatAsContent() but still nothing