Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Wise Monks
I have a large XML file and I need to pull the data out a certain tags in the file. I figure I would use this in my script ...
I can see I get the expected data by doing a ...use XML::Parser; my $p = XML::Parser->new(Style => 'Tree'); my $tree = $p->parsefile('foo.xml');
... but I cannot figure out how I am support to transfer the tree until I extract the data I am want.print Dumper( $tree );
thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I traverse the data struct returned from parsing an XML::Parse 'Tree'?
by CountZero (Bishop) on Mar 08, 2011 at 20:21 UTC | |
by Anonymous Monk on Mar 08, 2011 at 21:10 UTC | |
|
Re: How do I traverse the data struct returned from parsing an XML::Parser 'Tree'?
by toolic (Bishop) on Mar 08, 2011 at 20:07 UTC | |
|
Re: How do I traverse the data struct returned from parsing an XML::Parse 'Tree'?
by Jenda (Abbot) on Mar 09, 2011 at 11:04 UTC |