in reply to How to get the part of the xml from the server log

You could remove the first two lines. For example, if $file contains the contents of the file,
$file =~ s/^(?:.*\n){2}//;