$xml = new XML::Simple; $data1 = $xml->XMLin("sample.xml"); print Dumper($data1);