Skip Menu |

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

Report information
The Basics
Id: 68602
Status: resolved
Priority: 0/
Queue: XML-Simple

People
Owner: Nobody in particular
Requestors: cheako [...] mikemestnik.net
Cc:
AdminCc:

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



Subject: Issue with NoSort, implementation seams incomplete.
Date: Wed, 01 Jun 2011 12:47:28 -0500
To: bug-XML-Simple [...] rt.cpan.org
From: Mike Mestnik <cheako [...] mikemestnik.net>
Hello, there are two attachments. The first is my script it makes use of Tie::IxHash to ensure the order of hash elements. The order of hash elements is verified by mean of Data::Dumper, the second file contains the "Debugging output" that illustrates the problem. I've read my XML/Simple.pm and I'm unable to locate where these sub elements are unsorted. The example illustrates <iface ... name="lo"> has it's contents in reverse order and <iface name="tun6to4"> has it's contents jumbled. The prof that this is not the original order of the keys is in "'lo' => {" and "'tun6to4' => {". Thank you for your time working on this XML-Simple is a wonderful tool and I relies that it was not meant to be used this way. I may look into other methods to generate XML.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

It's possible that the latest version of XML::Simple might perform better in this regard if you override the new_hashref method to supply a tied hash. If not, sorry but this isn't a area where I'll be putting any more development effort. Regards Grant