Skip Menu |

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

Report information
The Basics
Id: 40713
Status: resolved
Worked: 1 min
Priority: 0/
Queue: XML-TinyXML

People
Owner: xant [...] cpan.org
Requestors: john.jewitt [...] gmail.com
Cc:
AdminCc:

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



Subject: Bug in XML::TinyXML::Node
Hi, while looking to use you very nice module, I found the following problem: XML-TinyXML-0.05 testing.pl: #!/usr/bin/perl use strict; use warnings; use XML::TinyXML; my $xml = XML::TinyXML->new("rootnode", param => "somevalue", attrs => { attr1 => 'foo', attr2 => 'bar' }); printf("%s \n", $xml->dump); Test run before fix: $ ./testing.pl Can't locate object method "AddAttributes" via package "XML::TinyXML::Node" at /usr/lib/perl5/site_perl/5.10/i686-cygwin/XML/TinyXML/Node.pm line 109. Bug in line 109, change AddAttributes to addAttributes Test run post fix: $ ./testing.pl <?xml version="1.0"?> <rootnode attr2="bar" attr1="foo">somevalue</rootnode> $ uname -a CYGWIN_NT-5.1 pslwxp10032 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin $ perl -v This is perl, v5.10.0 built for cygwin-thread-multi-64int (with 6 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. I hope this does not duplicate another report. Regards, John
I just uploaded XML-TinyXML-0.06.tar.gz on pause which fixes the typo in XML::TinyXML::Node.pm:109
Subject: Re: [rt.cpan.org #40713] Bug in XML::TinyXML::Node
Date: Thu, 6 Nov 2008 12:16:59 +0000
To: bug-XML-TinyXML [...] rt.cpan.org
From: "John Jewitt" <john.jewitt [...] gmail.com>
Thanks for the quick fix! I've worked with quite a few of the Perl XML modules and I've only just noticed yours. I really like the "No Dependencies" feature. Cheers, John 2008/11/6 Andrea Guzzo via RT <bug-XML-TinyXML@rt.cpan.org> Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=40713 > > > I just uploaded XML-TinyXML-0.06.tar.gz on pause which fixes the typo > in XML::TinyXML::Node.pm:109 >