Brent Clark wrote:
> Hi all
>
> I have a hash that I am trying to populate for XML::Simple
>
> $fullXmlHash{$agentBookingSearch."BookRef_".$xmlData{'bookref'}} =
> \%xmlData;
>
> This work perfectly and I get the info as so
> <?xml version="1.0" standalone="yes" >
> <opt>
> <ebkBookRef_100122>
> <booktime>17:20:58</booktime>
> etc
> <bookref>100122</bookref>
> </ebkBookRef_100122>
> <ebkBookRef_100243>
> <booktime>13:37:07</booktime>
> <billcode>B</billcode>
> <sellcur>ZAR</sellcur>
> etc
>
> But now I need it to look like so
>
> <?xml version="1.0" standalone="yes" >
> <agentABC>
Is the above the only difference? You didn't state clearly what the
problem was, and that was the only difference I could see.
If the root name is the only problem, you can use the 'RootName' option
to provide you 'agentABC' string. Check the docs,
perldoc XML::Simple
[snip]
> Kind Regards and thanks in advance
> Brent Clark
>
HTH,
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>