Subject: | Thanks for XML::Smart and possible bug. |
Date: | Wed, 21 Apr 2010 20:52:54 -0700 (PDT) |
To: | bug-XML-Smart [...] rt.cpan.org |
From: | brian <chisight [...] yahoo.com> |
Thank you for the project, it's some really impressive results. Fast, easy to use, and flexible.
I've worked around (avoided) a small issue that might be a bug but wanted to report it anyway.
I take an XML object like your example Server object and a 2nd similar Client object with the same layout except that "server" is replaced with "client".
I then attempt to merge clients into servers, using something like $XMLServer->{root}{client}=$XMLClient->{root}{client}
Printing $XMLServer->{root}{client}{address} returns nothing (not even a warning under -w and use strict;).
If I add in $XMLServer->save('file.xml'); $XMLServer=XML::Smart->new('file.xml'); and then attempt to print $XMLServer->{root}{client}{address} then I get the appropriate address and file.xml looks as I would expect.
If the merged object writes to disk (and reads back) correctly, shouldn't the object function as well?
Thanks again.
Brian