Z
zzapper
Hi
<companyname count="1">
<property id="55467" md="2008-03-20" mc="GBP" mp="173000" >
<psumm><![CDATA[This 3 bedroom, ]]></psumm>
<a1>1 Bucket Way</a1>
<at>Stafford</at>
<ac>Staffordshire</ac>
<actry></actry>
<images>
<image id="543">Property Image</image>
<image id="545">Property Image</image>
</images>
</property>
</companyname>
I am trying to read the above (simplified) with XML::Simple with or
without ForceArray=1.
I can output everything EXCEPT I cannot find the Perl data syntax to
access anything in <images> eg 543 or
the text "Property Image"
$data = $xml->XMLin("prop.xml", forcearray => 1);
$ac=$data->{property}->{554674}->{ac}[0];
Desperate!!
zzapper
<companyname count="1">
<property id="55467" md="2008-03-20" mc="GBP" mp="173000" >
<psumm><![CDATA[This 3 bedroom, ]]></psumm>
<a1>1 Bucket Way</a1>
<at>Stafford</at>
<ac>Staffordshire</ac>
<actry></actry>
<images>
<image id="543">Property Image</image>
<image id="545">Property Image</image>
</images>
</property>
</companyname>
I am trying to read the above (simplified) with XML::Simple with or
without ForceArray=1.
I can output everything EXCEPT I cannot find the Perl data syntax to
access anything in <images> eg 543 or
the text "Property Image"
$data = $xml->XMLin("prop.xml", forcearray => 1);
$ac=$data->{property}->{554674}->{ac}[0];
Desperate!!
zzapper