We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Magpie: <image> tags not parsing

Development and Programming

Ryan 2010's avatar
Ryan 2010
265 posts
17 years ago
Ryan 2010's avatar Ryan 2010

For this weather RSS feed I’m using, Magpie is bundling the title within the <image> tags with the <item> title.

<title>Current Conditions</title>
−
    <guid>
http://www.theweathernetwork.com/index.php?product=weather&placecode=cabc0308&ref=current_obs
</guid>
−
    <link>
http://www.theweathernetwork.com/index.php?product=weather&placecode=cabc0308&ref=current_obs
</link>
Sun, 24 June 2007 11:00:00 PDT</pubDate>
−
    <image>
<url>http://rss.counter.weather.ca/counter.gif</url>
<title>spacer</title>
−
    <link>
http://www.theweathernetwork.com/index.php?product=weather&placecode=cabc0308&ref=current_obs
</link>
</image>

so as a result, I’m getting:

Current Conditionsspacer Not Available, 17 °C , Humidity 52% , Wind

The problem, is spacer appearing in the title.

my code is:

{exp:magpie url="http://rss.theweathernetwork.com/weather/cabc0308" limit="10" refresh="60"}
{items}
<li><a href="http://{link}">{title}</a>

{description}
{/items}
</ul>
</ul>
{/exp:magpie}

How do I get this fixed?

Thanks

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.