Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Joey Hess <joeyh <at> debian.org>
Subject: Bug#380498: parsing of atom dates is broken
Newsgroups: gmane.linux.debian.devel.bugs.general
Date: Sunday 30th July 2006 16:00:25 UTC (over 10 years ago)
Package: libxml-feed-perl
Version: 0.08-1
Severity: normal

Working with Jeff Waugh's feed, I noticed that XML::Feed fails to get
any dates from it. The feed is atom and the dates look fine:


http://www.w3.org/2005/Atom"
      xml:lang="en"
      xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

2006-07-28T13:03:16Z

                2006-07-28T09:36:43Z
		2006-07-28T09:39:53Z

(Full feed attached as index.html.)

Seems that XML::Feed::Atom does not look for the right xml element
names. Instead of looking for updated and published elements, it looks
for "modified" and "issued" elements. Are those old names from an earlier
version of atom? RFC 4287 uses the updated and published elements.

With the attached patch, it can now parse this feed's dates, and should
still
support any feeds out there using the other tag names. Please apply as
soon as you can, this is breaking my aggregator. :-)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libxml-feed-perl depends on:
ii  libclass-errorhandler-perl  0.01-2       Base class for error handling
ii  libdatetime-format-mail-per 0.2901-2     Convert between DateTime and
RFC28
ii  libdatetime-format-w3cdtf-p 0.04-2       Parse and format W3CDTF
datetime s
ii  libdatetime-perl            1:0.2901-1.1 perl DateTime - Reference
implemen
ii  libfeed-find-perl           0.06-2       Syndication feed
auto-discovery
ii  libhtml-parser-perl         3.55-1       A collection of modules that
parse
ii  liburi-fetch-perl           0.06-1       Smart URI fetching/caching
ii  liburi-perl                 1.35-2       Manipulates and accesses URI
strin
ii  libwww-perl                 5.805-1      WWW client/server library for
Perl
ii  libxml-atom-perl            0.16a-0.1    Atom feed and API
implementation
ii  libxml-rss-perl             1.05-1       Perl module for managing RSS
(RDF 
ii  perl                        5.8.8-6      Larry Wall's Practical
Extraction 

libxml-feed-perl recommends no packages.

-- no debconf information

-- 
see shy jo
 
CD: 14ms