in reply to Re: Perl parsing XML using XML::Simple
in thread Perl parsing XML using XML::Simple
Doesn't seem to work. It is not parsing the above structure. Please advisemy $data = $xml->XMLin($file, ForceArray=>['xs:element','xs:attribute' +]); my $seq_1 = $data->{'xs:complexType'}->{$complex}->{'xs:simpleContent' +}; if (exists($seq_1->{'xs:attribute'})){ print "I am here"; $elementref = $seq_1->{'xs:attribute'};}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl parsing XML using XML::Simple
by Joost (Canon) on Jan 21, 2008 at 20:18 UTC | |
by thickice97 (Initiate) on Jan 22, 2008 at 23:03 UTC |