----- Original Message -----
From: "Karjala" <[EMAIL PROTECTED]>
To: <beginners@perl.org>
Cc: "Mike Blezien" <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2007 11:35 AM
Subject: Re: XML Parsing
Mike Blezien wrote:
can this handle multiple elements with the same name? IE. the path used above
may have more then one <message></message> element within the
<raiserisklevel><message> ... </message><message> ... </message>
</raiserisklevel>
Mike
It can, as follows:
my @message_objects =
$obj->path('response/idalertresponse/candidateresults/candidateactivity/messaging/raiserisklevel/message');
foreach my $msg_obj (@message_objects) {
print $msg_obj->value();
}
Ok, thanks for the info and help :)
Mike
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/