ropey has asked for the wisdom of the Perl Monks concerning the following question:
And from this hash I want to generate a XML tree such as%DATA = ( 'link2' => { 'attribute' => { 'x' => '0050', 'y' => '0050', 'r' => '100' }, 'src' => 'http://foo.com/4158.swf', 'colours' => { 'alpha' => '000' }, 'name' => 'Future truth oracle' } }
I have looked at modules such as Data::DumpXML, however this outputs a XML tree to describe the actual hash, not the key value pairs within it. Does anyone know of a module which which will generate a xml tree to meet my requirements ? Thanks<link2> <attribute> <x>0050</x> <y>0050</x> <r>100</r> </attribute> <src>http://foo.com/4158.swf</src> etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Hash to XML
by Ovid (Cardinal) on Mar 26, 2002 at 18:52 UTC | |
by ropey (Hermit) on Mar 27, 2002 at 09:58 UTC | |
|
Re: Hash to XML
by perrin (Chancellor) on Mar 26, 2002 at 18:45 UTC |