minter has asked for the wisdom of the Perl Monks concerning the following question:
However, I can't see how to get XML::RSS to do that. I've tried passing in an array reference, but that just outputs ARRAY(0x####):<g:label>Hi-Tech</g:label> <g:label>Business development</g:label> <g:label>Personnel</g:label> <g:label>Silicon Valley</g:label>
outputs$rss->add_item( title => $row->{description}, description => $row->{description}, link => "$urlbase/searchnew.php/$row->{id}", g => { image_link => "$urlbase/$row->{picture}", price => $baseprice, price_type => 'negotiable', id => $row->{id}, label => ['Foo', 'Bar'] } );
Passing in a list just gives errors about an uneven number of arguments to the hash. And multiple hash keys with the same name, of course, just provides the last one given. So is this sort of thing possible with XML::RSS, or do I need to move to a more specialized XML generator?<g:label>ARRAY(0xb10bd0)</g:label> <g:id>4374</g:id> <g:price>$170.00</g:price> <g:price_type>negotiable</g:price_type>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::RSS, Google Base, and multiple entries
by caelifer (Scribe) on Oct 05, 2006 at 21:21 UTC | |
by minter (Novice) on Oct 09, 2006 at 17:44 UTC |