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