Monday, January 17, 2011

Module XML::TreePP::XMLPath verison 0.63 released

Version 0.63 of the XML::TreePP::XMLPath PERL module is released on CPAN.

It can be downloaded from the project web site, http://www.codepin.org/project/perlmod/XML-TreePP-XMLPath/ , or from CPAN, http://search.cpan.org/~rglaue/XML-TreePP-XMLPath-0.63/ .

This release fixes a bug exposed in PERL 5.13.1 and higher regarding the sharing of local variables with a sub reference. Replaces the Data::Dump module with Data::Dumper for cloning XML Structures. Data::Dumper quotes hash keys, which is less problimatic in Perl 5.13.1 and higher.

Module XML::TreePP::Editor verison 0.12 released

Version 0.12 of the XML::TreePP::Editor PERL module is released on CPAN.

It can be downloaded from the project web site, http://www.codepin.org/project/perlmod/XML-TreePP-Editor/ , or from CPAN, http://search.cpan.org/~rglaue/XML-TreePP-Editor-0.12/ .

This module is used to edit an XML::TreePP parsed XML Document, using XML::TreePP::XMLPath .


This version replaces the use of the Data::Dump module with Data::Dumper.
In the latest version of PERL (5.12.2 tested) the eval function does not like unquoted HASH keys which begin with the dash "-". Thus, the test cases broke with this version of PERL. Data::Dump does not quote the hash key, so its use was replaced with Data::Dumper which does quote the hash key. It is used to clone XML structures.
The XML::TreePP module uses the dash "-" as default (configurable to optionally use "@" instead of "-") to indicate attributes of XML elements. So the XML string "is represented in PERL structure as "{ element => { -attribute => 'value' } }" with Data::Dump, and as "{ element => { '-attribute' => 'value' } }" with Data::Dumper .