Actually all File objects should use System.getProperty("file.separator"), but your error message is a little wierd because it shows up @ where it actually tests for an XMLFilter it seems root = (XMLFilter)root.getParent(); can you post more source for your test file? - Jon