Subject: | Bug in nodes_keys method |
Description:
After copying nodes from an XML::Smart object to another the nodes_keys
method cannot handle these new nodes. If I saved into file by save
method and re-read this object this problem was not show up.
Example code:
push(@{$XMLtarget->{root}->{newnode}},$XMLsource->{root}->{newnode});
#Copy new node from XMLsource object to XML target object.
print $XMLtarget->{root}->nodes_keys();
#The 'newnode' will not be printed out.
$XMLtarget->save("temp.xml");
$XMLtarget = new XML::Smart( "temp.xml", 'XML::Parser');
print $XMLtarget->{root}->nodes_keys();
#In this case the 'newnode' will be printed out.
Perl version: 5.10