clanrbr has asked for the wisdom of the Perl Monks concerning the following question:
I have loop for each element from my array and i am creating new item.<item> <title><![CDATA[ Title ]]></title> <link>My link</link> <description> <![CDATA[My Description]]> </description> <image>URL1.jpg</image> </item> <item> <title><![CDATA[ Title2 ]]></title> <link>My link2</link> <description> <![CDATA[My Description2]]> </description> <image>URL2.jpg</image> </item> </code Here is my code for now : <code> my $rss = new XML::RSS (version => '2.0'); $rss->channel(title => '<![CDATA[Title]]>', link => 'link', language => 'en', description => '<![CDATA[some]]>', docs => 'Here'); $rss->add_item( title => "$title", link => "$row[0]", description => "$description", );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RSS: XML
by tobyink (Canon) on Mar 01, 2012 at 13:55 UTC |