simple XML question for perl - how to retrieve specific elements
- by Jeff
I'm trying to figure out how to loop through XML but I've read a lot and I'm still getting stuck. Here's the info:
I'm using the wordnik api to retrieve XML with XML::Simple:
$content = get($url);
$r = $xml->XMLin("$content");
The actual XML looks like this:
<definitions>
-
<definition sequence="0" id="0">
-
<text>
To…