Subject: | CDATA bug |
MIME-Version: | 1.0 |
X-Mailer: | MIME-tools 5.418 (Entity 5.418) |
X-RT-Original-Encoding: | utf-8 |
Content-Type: | multipart/mixed; boundary="----------=_1143482834-25016-4" |
Content-Length: | 0 |
Content-Type: | text/plain; charset="utf8" |
Content-Disposition: | inline |
Content-Transfer-Encoding: | binary |
Content-Length: | 383 |
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 |
MIME-Version: | 1.0 |
Content-Type: | multipart/mixed; boundary="----------=_1143482834-25016-3" |
X-Mailer: | MIME-tools 5.418 (Entity 5.418) |
Content-Length: | 0 |
Content-Type: | text/plain; charset="utf8" |
Content-Disposition: | inline |
Content-Transfer-Encoding: | binary |
X-RT-Original-Encoding: | utf-8 |
Content-Length: | 0 |
Content-Type: | application/octet-stream; name="testr.pl" |
Content-Disposition: | inline; filename="testr.pl" |
Content-Transfer-Encoding: | base64 |
Content-Length: | 251 |
#!/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);