[Haskell-cafe] XML Validation and Digestion in Haskell

2007-03-22 Thread Arun Suresh
Hi.. I am currently working on a project where basically we do a lot of XML validation and digestion. For example : We recieve an XML document A, if the document passes schema validation, we do some business level validations, then from A, we create XML digests B, C and D. Our code-base is

Re: [Haskell-cafe] XML Validation and Digestion in Haskell

2007-03-22 Thread Duncan Coutts
On Thu, 2007-03-22 at 14:04 +0530, Arun Suresh wrote: I am currently working on a project where basically we do a lot of XML validation and digestion. For example : We recieve an XML document A, if the document passes schema validation, we do some business level validations, then from A, we

Re: [Haskell-cafe] XML Validation and Digestion in Haskell

2007-03-22 Thread Andrew Wagner
Hi Arun, Your problem description seems a little vague - which is understandable, considering how embedded in your business model it is. As for general recommendations, I'm no guru, but I would suggest looking at the existing XML libraries in Haskell [1], and if that's not powerful enough, check

Re: [Haskell-cafe] XML Validation and Digestion in Haskell

2007-03-22 Thread Chris Eidhof
Don't spend too much time on the various libraries though. I tried some simple things with Haskell and XML, but I found it really hard to actually parse a simple document. You really don't want to write your own parser. The only tool that worked for me was HXT, which is based on arrows.

Re: [Haskell-cafe] XML Validation and Digestion in Haskell

2007-03-22 Thread Chris Eidhof
Hey Aron, I think you intended to CC Haskell Café as well. HaXml has support for DtdToHaskell, but HXT supports validating with a Relax NG validator. I guess the best way to figure it out is thoroughly read the documentation. -chris On Mar 22, 2007, at 10:40 PM, Arun Suresh wrote: