28 Dec
2006
28 Dec
'06
midnight
nr@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.