Errto has asked for the wisdom of the Perl Monks concerning the following question:
and it is producing this output:my $xml = XML::Smart->new; $xml->{Body} = { Foo => 'Bar' }; $xml->save("test.xml");
whereas I would like it to produce this output:<Body Foo="Bar"/>
and was hoping there was a straightforward way to do so. Cheers,<Body><Foo>Bar</Foo></Body>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: force elements in XML::Smart
by GrandFather (Saint) on Apr 24, 2007 at 00:15 UTC | |
|
Re: force elements in XML::Smart
by almut (Canon) on Apr 23, 2007 at 23:47 UTC | |
|
Re: force elements in XML::Smart
by gube (Parson) on Apr 24, 2007 at 03:39 UTC |