When you rewrie the XML you got:<foo cc="1" bb="2" aa="3"/>
This hapens because the keys in the hash doesn't have order, soo I sort it.<foo aa="3" bb="2" cc="1"/>
But if you have:
The order of the multiple 'i' isn't changed.<foo> <i>zzz</i> <i>xxx</i> <i>www</i> </foo>
What I don't know is if the 1st type, where the order is changed, make difference in the DTD, since I'm not a XML geek. If the order for the arguments in the tag is really needed, I can make XML::Smart care with the order of the keys, but this will consume more memory and CPU.
Graciliano M. P.
"The creativity is the expression of the liberty".
In reply to Re: Re: Re: Re: XML::Smart - Development in final stage. (beta is out)
by gmpassos
in thread XML::Smart - Development in final stage. (beta is out)
by gmpassos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |