X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FXml.hs;h=3242dacd8b2a7a69c997acb527846dfaaeb0ff75;hb=c4f82d3ee2488f8574e4719ec3c0f99b52ff649b;hp=1444c677a9b23ad923c39ea0f4cddd3d59b99ae6;hpb=e9a5b05495cc1b468ae72ef3ae1bd06bfded26f2;p=dead%2Fhtsn-import.git diff --git a/src/Xml.hs b/src/Xml.hs index 1444c67..3242dac 100644 --- a/src/Xml.hs +++ b/src/Xml.hs @@ -18,9 +18,11 @@ import Text.XML.HXT.Core ( PU, SysConfigList, isElem, + no, readDocument, runX, withRemoveWS, + withValidate, xpickleVal, xunpickleVal, yes ) @@ -54,7 +56,7 @@ newtype DtdName = DtdName String -- would have to parse whitespace in each (un)pickler. -- parse_opts :: SysConfigList -parse_opts = [ withRemoveWS yes ] +parse_opts = [ withRemoveWS yes, withValidate no ] -- | Given an @unpickler@ and a @filepath@, attempt to unpickle the