$xslt_data =~ s/[^\n]*\n//;
$xslt_data
I have this issue, and it took a little bit of time to identify. I'm glad I came across this thread. Basically, that code, as fish suggests, is to strip out the <?xml version= > line. If you are more than a newbie at XSLT, you might have had this line in your XSL:<xslutput method="xml" omit-xml-declaration="yes"/>which causes the XSL processor to remove the xml declaration for you. So, with IW, you must always have omit-xml-declaration="no", which is the default.--krivTS 6.1 SP2W2K