Hi friendThanks in advance .I have an tpl where i read an xml file and do some modifications with that xml file, I have an requirement in such a way that if i select an wrong xml file it should not print the system generated error message "Preview and Generate error" but rather it should print " ERROR: Invalid file selected"i have tried by implementing some perl code ,but in vain its printing the message and even its painting the page.