in reply to XML::Twig help

You can use the cpan module XML::Simple to read in the XML and create a hash. It looks similar to:

my $fields = XMLin('fields.xml') or die "Cannot read fields.xml\n";

Then you can use Data::Dumper or something similar to print the hash. Then it's as easy as following the key/value paris until you are at the data you want.