Can't call method "contents" on an undefined value at
/kunden/homepages/37/d232472189/htdocs/executable/perl5lib/lib//XML/RSS/Parser.pm
line 117.
The attached feed, which is missing an items section (sourced from
http://www.nationalpost.com/scripts/sp6query.aspx?catalog=ntnp&type=stry&tags=columnistname%7CLisa+Van+de+Ven)
results in the above error message being thrown.
I am executing by XML::RAI.
If it needs to throw an error (instead of simply returning no items)
then something clearer would be appreciated.
Subject: | npostfeed.txt |
<?xml version="1.0" encoding="utf-8"?><feed xml:lang="en-ca" xml:base="http://www.nationalpost.com/" xmlns="http://www.w3.org/2005/Atom"><title type="html">Content Query</title><subtitle type="html">Search results for your query</subtitle><id>tag:www.nationalpost.com:Query|ntnp|stry|columnistname|Lisa Van de Ven|</id><rights type="html">(c) CanWest MediaWorks Publications Inc.</rights><updated>2010-12-17T02:28:20Z</updated><generator>(c) CanWest MediaWorks Publications Inc.</generator><link href="http://www.nationalpost.com/Scripts/Sp6Query.aspx?format=ATOM" rel="alternate" type="application/atom+xml" title="Content Query" /><link href="http://www.nationalpost.com/Scripts/Sp6Query.aspx?format=ATOM&CatalogId=ntnp&ContentTypeCode=stry&Tags=columnistname|Lisa Van de Ven" rel="self" type="application/atom+xml" title="Content Query" /></feed>