in reply to Keeping XML structure with XML::Simple
I am not really that concerned, as long as the DOM tree still keeps logically equivalent, although you can argure that a child is not a property, but well...
The first thing came up in my mind was this testing, which I felt interesting, mostly triggered by your post:
use XML::Simple; use strict; use warnings; my $xml = XMLin('<config ip="127.0.0.1" port="12345"><timeout>1000</ti +meout><timeout>2000</timeout></config>'); print XMLout($xml);
The output was:
<opt ip="127.0.0.1" port="12345"> <timeout>1000</timeout> <timeout>2000</timeout> </opt>
I am satisfied.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Keeping XML structure with XML::Simple
by chazzz (Pilgrim) on Jul 21, 2004 at 12:43 UTC | |
by johnnywang (Priest) on Jul 21, 2004 at 16:44 UTC |