import Data.Maybe import Text.XML.Light students=""++ " "++ " "++ " "++ " "++ " "++ " "++ "" xmlRead elm name = mapM_ putStrLn . concatMap (map (fromJust.findAttr (unqual name)).filterElementsName (== unqual elm)) . onlyElems. parseXML