questions on XML::Simple



I used the XML::Simple module to read some xml, which works great.

But when I write it back out with XMLout.. it's changed.

For example the input that looks like this:

<Summary>
<TotalOrders>1</TotalOrders>
<TotalLineItems>4</TotalLineItems>
<TotalQuantity>158</TotalQuantity>
</Summary>

ends up looking like this:

<Summary TotalLineItems="4" TotalOrders="1" TotalQuantity="158" />


Is it possible to have it written out in the same format it was read
from? Is there another module that would do this?

Thanks.
.