hi,

i need to parse the xml file and store the data in array :

here is the code:
use XML::Simple;

my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml');

foreach my $BuildProject (@{$ItemGroup->{BuildProject}}) {
    print $BuildProject->{Include} . "\n";
}


and xml file is : 


 <ItemGroup>

    <BuildProject Include="AssemblyInfo.csproj" />
    <BuildProject Include="Assembly.csproj" />

  </ItemGroup>

but when i compile the code, it throws the error : "Not an ARRAY reference"'

i need output in array : @a = (AssemblyInfo.csproj,Assembly.csproj);
please suggest 


regards
irfan

Reply via email to