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 <andrewcop...@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@haskell.org
> http://www.haskell.org/**mailman/listinfo/haskell-cafe<http://www.haskell.org/mailman/listinfo/haskell-cafe>
>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to