[Haskell-beginners] Help in reading XML into a data type with HXT

Michael Orlitzky michael at orlitzky.com
Sat Jan 24 18:19:02 UTC 2015


On 01/24/2015 12:29 PM, Alexis Praga wrote:
> <animelist> 
>   <title>Bleach</title>
>   <title>Naruto</title>
> </animelist>

HXT is picky about whitespace, you have to tell it to ignore those
leading spaces.

Try,

  runX  ( xunpickleDocument xpAnimeList [ withRemoveWS yes ] src)

instead.



More information about the Beginners mailing list