[Haskell-cafe] Fwd: XML modification

Dmitry Olshansky olshanskydr at gmail.com
Wed Nov 23 10:40:24 CET 2011

Personally I prefer xml-enumerator. You can work with xml-stream or with
DOM through cursor (like XPath).

I think that in your case working with stream is preferrable.

You can just make an Enumeratee like

>import qualified Data.Enumerator.List as EL

> myEnum = EL.map f
>    where
>       f (EventBeginElement n ats) = ... -- parse attributes
>       f e = e

2011/11/23 Andrew Coppin <andrewcoppin at btinternet.com>

> Hi guys.
> I've got a folder with about 80 XML files in it. I want to take each file
> and make specific modifications to it. (Mostly just finding specific
> attributes and changing their values to make then all consistent.)
> Now I guess it wouldn't take me /that/ long to code something from
> scratch. But does anybody have a better suggestion for tools or libraries
> that might be useful?
> ______________________________**_________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/**mailman/listinfo/haskell-cafe<http://www.haskell.org/mailman/listinfo/haskell-cafe>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111123/d140a1dd/attachment.htm>

More information about the Haskell-Cafe mailing list