in reply to ftp get (*.xml)

Net::FTP's get() does not handle wildcards

You didn't mention which Perl module you are using. get() only works for a single file in Net::FTP as shown in the documentation. Other modules have mget.