Okay, it didn't even slightly work though. Also I changed the data to make it easier for you guys to help.
foreach my $info ($root->children('data')){ my $INTEREST2 = $drug->first_child_text('groups/group'); print "$INTEREST2"; print "\n"; }
I have no idea how to capture INTEREST1 as it is within the tag. What I've written here didn't work as groups/group is not valid.
In reply to Re^2: XML::Twig help
by yesitsjess
in thread XML::Twig help
by yesitsjess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |