Skip Menu |

This queue is for tickets about the XML-RSS CPAN distribution.

Report information
The Basics
Id: 40978
Status: resolved
Worked: 40 min
Priority: 0/
Queue: XML-RSS

Owner: SHLOMIF [...]
Requestors: user42 [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: parsing of rss 2.0 skipDays and skipHours
Date: Mon, 17 Nov 2008 10:09:50 +1100
To: bug-XML-RSS [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 763b
The 2.0 sample feed parsed by XML::RSS with the program below gives 'skipHours' => { 'hour' => '0122223', 'skipHours' => ' ' }, 'skipDays' => { 'day' => 'SaturdaySunday', 'skipDays' => ' ' }, where I hoped for an array or something for the multiple hours or days under those parts, with a view to passing them to XML::RSS::Timing. Concatenating in the hours in particular makes the result there ambiguous of course.
text/x-perl 229b
#!/usr/bin/perl use strict; use warnings; use LWP::Simple; my $xml = get(''); use XML::RSS; my $feed = XML::RSS->new; $feed->parse($xml); use Data::Dumper; print Dumper($feed);
Download (untitled) / with headers
text/plain 176b
Fixed in the trunk. This is part of my general sweep for array/multiple-homogeneous-tags. Note that converting the rendering the parsed values back to an XML text may not work.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to