Subject: | CDATA bug |
XML Simple (2.14) does not parse CDATA sections correctly when run on
WinXP SP2 under ActivePerl (5.8.8 Build 816). CDATA sections get
appended with a right-arrow (">") for some reason. This does not occur
under RHEL4 using Perl 5.8.5. The attached test script demonstrates the
behavior.
Linux output:
$VAR1 = 'filfthflarnfilfth';
Windows output:
$VAR1 = 'filfthflarnfilfth>';
Subject: | testr.pl |
#!/usr/bin/perl
use XML::Simple;
use Data::Dumper;
$pxml = new XML::Simple;
$testmsg = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><testmsg><![CDATA[filfthflarnfilfth]]></testmsg>";
$comm = $pxml->XMLin($testmsg);
print Dumper($comm);