Rodster001 has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash ref:
When I run it though XMLout like this:$VAR1 = { 'Last' => 'Smith', 'First' => 'John', };
I get this:print XMLout($hashref);
What I want is this:<opt Last="Smith" First="John" />
I have looked though the docs and have tried quite a few option combos, but I am not getting quite what I want. What options do I need to use? Thanks for the help!<opt> <Last>Smith</Last> <First>First</First> </opt>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XMLSimple XMLout, formatting output
by ikegami (Patriarch) on Apr 01, 2009 at 19:57 UTC | |
by Rodster001 (Pilgrim) on Apr 01, 2009 at 20:10 UTC | |
by ikegami (Patriarch) on Apr 01, 2009 at 20:58 UTC | |
by Rodster001 (Pilgrim) on Apr 01, 2009 at 21:16 UTC | |
by ikegami (Patriarch) on Apr 01, 2009 at 21:17 UTC | |
| |
|
Re: XMLSimple XMLout, formatting output
by mr_mischief (Monsignor) on Apr 01, 2009 at 20:52 UTC | |
|
Re: XMLSimple XMLout, formatting output
by grantm (Parson) on Apr 02, 2009 at 01:02 UTC |