Skip Menu |
 

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

Report information
The Basics
Id: 8055
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: cassidy [...] systransoft.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.58
Fixed in: (no value)



Subject: XML::LibXML v.1.58 differs in quoting xml entities like quotes
Download (untitled) / with headers
text/plain 728b
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 &quot;( read the caution first !&quot; --</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.
[guest - Tue Oct 19 13:48:09 2004]: Show quoted text
> 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 &quot;( read the > caution first !&quot; --</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 Show quoted text
> about entity quoting for XML::LibXML.
I see in the pasted in text where I reported the problem that this bug report (HTML) system ate the quoted entity. I'm not sure how to escape it, but in the "good" installation, the double-quotes come out as ampersand quot semicolon, which works great. Thanks


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.