Subject: | XML::LibXML v.1.58 differs in quoting xml entities like quotes |
I had an application using XML::LibXML 1.57, and this code:
#!/usr/bin/perl
use XML::LibXML;
my $name='test';
my $content='Warning: Can not analyse(no result), trying "( read the caution first !" --';
my $node = XML::LibXML::Element->new($name);
$node->appendText($content);
print $node->toString(),"\n";
Produced this output:
<test>Warning: Can not analyse(no result), trying "( read the caution first !" --</test>
We set up a new system with XML::LibXML version 1.58, and the same code produces this:
<test>Warning: Can not analyse(no result), trying "( read the caution first !" --</test>
I did not see anything in the perldoc documentation or the README file about entity quoting for XML::LibXML.