Grant McLean wrote:
Perhaps instead of ...
$xml->XMLout(\%fullXmlHash, ...
.. you might be looking for:
$xml->XMLout( { "agentName" => \%fullXmlHash} } , ...
Ahh brilliant
this is how it currently is
<?xml version="1.0" standalone="yes" >
<opt>
<agentName>
<ltsBookRef_100756>
<booktime>12:51:59</booktime>
<billcode></billcode>
<sellcur>ZAR</sellcur>
<audituser>tbrink</audituser>
so im one step closer to gettting this right.
the problem is I have not one agentnames. but a few
I need to try and get it as so
<agentNameOne>
<ltsBookRef_100756>
<booktime>12:51:59</booktime>
<billcode></billcode>
<sellcur>ZAR</sellcur>
<audituser>tbrink</audituser>
</agentNameOne>
<agentNameTwo>
etc tags for agent two
</agentNameTwo>
<agentNameTwo>
etc tags for agent three
</agentNameTwo>
A big thanks to replying to me.
Really appreciate this.
Kind Regards
Brent Clark
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>