Skip Menu |

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

Report information
The Basics
Id: 34695
Status: resolved
Priority: 0/
Queue: XML-Smart

People
Owner: Nobody in particular
Requestors: sami.salloum [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.6.9
Fixed in: (no value)



Subject: Bug in copy method
When I copy an XML::Smart object using the 'copy' method, the 'nodes' and 'nodes_keys' methods return an empty list: I am using perl v5.8.5 built for x86_64-linux-thread-multi Using the following example code: $xml= XML::Smart->new('file.xml' , 'XML::Smart::Parser') ; $xml_c = $xml->copy(); my @ar1= $xml_c->nodes_keys; print "@ar1"; # Does not succeed to pring anything $xml_c->save("out1.xml"); # This works and the file is written successfully my @ar2= $xml->nodes_keys; print "@ar2"; # WORKS FINE.
Fixed in 1.73