in reply to XML extraction

Hi ,

I can't comment on either Xpath or XML::Twig, but for something as simple as this, XML::Simple would/could do the job - XMLin() reads a valid XML file into a hash and returns the hash ref. e.g. ...

use XML::Simple; $hash = XMLin("file_name") or die "XMLin() - $!"; foreach (@{$hash->{DEFTABLE}->{SCHED_GROUP}->{JOB}}) { print "$_->{JOBNAME}, $_->{WEEKDAYS}\n"; }
... or some such. Obviously, this would require adjustment (to nested for) should there be > 1 SCHED_GROUP...

Disclaimer: I'm afraid the code is untested - our systems don't have XML::Simple installed as standard:-((

HTH ,

At last, a user level that overstates my experience :-))