Hello,
enabling indentation puts indents into multi line values, too. See the
attached test.pl script for an example. The output of the script is
<root>
<test foo="tra">aaa
bbb
ccc
ddd</test>
</root>
But IMHO it should be like this:
<root>
<test foo="tra">aaa
bbb
ccc
ddd</test>
</root>
In my case this did break base64 encoded data. The workaround is to put
the data into a cdata-Block. With this the data es kept alright.
Greetings,
Gert
Subject: | test.pl |
use strict;
require XML::Generator;
my $xg = XML::Generator->new(
escape => 'always,even-entities',
pretty => 2,
conformance => 'strict',
);
my $value = "aaa\nbbb\nccc\nddd";
print $xg->root(
$xg->test(
{foo=>"tra"},
$value,
),
);