nr at eecs.harvard.edu (Norman Ramsey) writes: > load :: String -> IO X.Document > load fn = do handle <- IO.openFile fn IO.ReadMode > contents <- IO.hGetContents handle > IO.hClose handle > return $ XP.xmlParse fn contents Try not closing the handle before parsing. -- Feri.