I know the surrounding code is fine because it is code I run with xerces and it works fine so the file is the correct format and the code should work (all the type mismatches etc have been fixed) Any suggestions appreciated, Vin