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.