Listing ( player_listings ),
Message ( listings ),
PlayerListing )
+import qualified TSN.News as News
import Xml ( parse_opts )
+-- | Import TSN.News from an 'XmlTree'.
+import_news :: Configuration -> XmlTree -> IO (Maybe Int)
+import_news = undefined
+
-- | Import TSN.Injuries from an 'XmlTree'.
import_injuries :: Configuration -> XmlTree -> IO (Maybe Int)
import_injuries =
import_with_dtd (dtd,xml)
| dtd == "injuriesxml.dtd" = import_injuries cfg xml
| dtd == "Injuries_Detail_XML.dtd" = import_injuries_detail cfg xml
+ | dtd == "newsxml.dtd" = import_news cfg xml
| otherwise = do
report_info $ "Unrecognized DTD in " ++ path ++ ": " ++ dtd ++ "."
return Nothing