Skip Menu |

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

Report information
The Basics
Id: 11535
Status: resolved
Priority: 0/
Queue: XML-Dumper

People
Owner: Nobody in particular
Requestors: rjh [...] yahoo-inc.com
Cc:
AdminCc:

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



Subject: control characters in scalar variables can't make the round trip
XML::Dumper 0.67, 0.71 $foo = "\cE"; Encoding this will XML::Dumper causes message re: malformed XML when reading in the data. not well-formed (invalid token) at line 26, column 25, byte 1069 at /home/y/lib/perl5/site_perl/5.6.1/XML/Parser.pm line 187 Perl 5.6.1 FreeBSD 4.8
Requests have been made to escape or filter control characters. A patch has been submitted (v0.72) to do the latter, so that's what we've got now :). Any suggestions on a good way to resolve this problem? Thanks, - m. [guest - Wed Feb 16 19:03:15 2005]: Show quoted text
> XML::Dumper 0.67, 0.71 > > $foo = "\cE"; > > Encoding this will XML::Dumper causes message re: malformed XML when > reading in the data. > > not well-formed (invalid token) at line 26, column 25, byte 1069 at > /home/y/lib/perl5/site_perl/5.6.1/XML/Parser.pm line 187 > > Perl 5.6.1 > FreeBSD 4.8 >
From: 187900 [...] rt.noris.net
I've got the same problem with XML::Dumper 0.76 and German umlauts: $ perl -le 'use XML::Dumper qw(pl2xml xml2pl); print XML::Dumper->VERSION; my $x = pl2xml "ü"; print $x; print xml2pl $x' 0.76 <perldata> <scalar>ü</scalar> </perldata> not well-formed (invalid token) at line 2, column 9, byte 20 at /usr/local/lib/perl5/site_perl/5.8.7/i686-linux-64int-ld/XML/Parser.pm line 187
From: 187900 [...] rt.noris.net
Show quoted text
> Any suggestions on a good way to resolve this problem?
As regards my problem with umlauts, including an encoding into the DTD works for me, e.g.: $xml =~ s/^(<\?xml version="1\.0")\?>/$1 encoding="ISO-8859-1"?>/ That's only a workaround, of course. Regards, fany
From: rjh [...] yahoo-inc.com
[guest - Mon Aug 1 20:53:02 2005]: Show quoted text
> now :). Any suggestions on a good way to resolve this problem?
Perl has a pretty effective syntax for representing non-printable characters. How about modeling that? Randy