JackHammer has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use XML::Simple; use Data::Dumper; my $xml = qq|<?xml version="1.0" standalone="no"?> <!DOCTYPE document SYSTEM "whocares.dtd"> <document> <QuestionList> <Question> <Id>3</Id> <Text>Are dingos your friend?</Text> <Answer>Satisfactory</Answer> </Question> </QuestionList> <QuestionList> <Question> <Id>11</Id> <Text>Should this run out of memory?</Text> <Answer>No</Answer> </Question> </QuestionList> </document>|; my $xml_ref = XMLin($xml); print $xml_ref->{'QuestionList'}->{'Question'}->[0]->{'Answer'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML Parsing Out of Memory error
by msemich (Novice) on Feb 28, 2002 at 20:06 UTC | |
|
Re: XML Parsing Out of Memory error
by mirod (Canon) on Feb 28, 2002 at 17:11 UTC | |
by JackHammer (Acolyte) on Feb 28, 2002 at 17:18 UTC | |
by mirod (Canon) on Feb 28, 2002 at 17:37 UTC | |
|
Re: XML Parsing Out of Memory error
by dash2 (Hermit) on Feb 28, 2002 at 17:23 UTC | |
|
Re: XML Parsing Out of Memory error
by maverick (Curate) on Feb 28, 2002 at 18:04 UTC | |
by Matts (Deacon) on Feb 28, 2002 at 19:39 UTC | |
|
Re: XML Parsing Out of Memory error
by lordsuess (Scribe) on Feb 28, 2002 at 18:14 UTC |