in reply to XMLin not able to read the input XML file

Assuming you're using XML::Simple:

use XML::Simple;

Try using XML::Simple's Strict Mode:

use XML::Simple qw(:strict);

That may help to track down whatever it is that currently "doesnt seem to work".

Note: Use this in addition to normal strictures and warnings rather than as a replacement, i.e.

use strict; use warnings; ... use XML::Simple qw(:strict);

-- Ken