in reply to Re: Keeping XML structure with XML::Simple
in thread Keeping XML structure with XML::Simple
which would correctly output:my $xml = XMLin(..., KeepRoot => 1); print XMLout($xml, KeepRoot => 1);
<config ip="127.0.0.1" port="12345"> <timeout>1000</timeout> <timeout>2000</timeout> </config>The KeepRoot option tells XML::Simple that your structure already has a root node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Keeping XML structure with XML::Simple
by johnnywang (Priest) on Jul 21, 2004 at 16:44 UTC |