Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Why doesn't XML::RSS encode entities automatically when outputting XML?

    I've wondered that, myself, many times. But I was (and am) too lazy to cook up a simple "see, look at this" test case to mail to the author.

    • I think the author knows. Digging deeper on CPAN I found a 9 month old open bug on this very issue. The example case is pretty simple.
      my $rss_in = new XML::RSS();
      $rss_in->parsefile($file_containing_an_ampersand);
      my $rss_out = new XML::RSS();
      $rss_out->add_item( $rss_in->{'items'}[0] );
      $rss_out->save('malformed_xml.rss');
      I got email from someone who says they have a DWIM patch. If that falls through and I can't find a good reason for the current behaviour I'll write one.