[Haskell-cafe] [SoC] XML Schema Implementation
sfvisser at cs.uu.nl
Tue Mar 31 06:39:03 EDT 2009
Some time ago I wrote a generic Haskell data type to XML/XSD
library. It was based on an old singleton version of the
multirec generic programming library. I never released any of it
because it is not really usable in a serious setting but you might
want to look at it for some inspiration.
Generic programming is *really* useful when it comes to managing XML
On Mar 31, 2009, at 12:16 AM, Vlad Dogaru wrote:
> Hello everyone,
> I am writing to judge interest in a Summer of Code proposition: an XML
> Schema implementation, described as a possbile application here.
> As both a tool and an inspiration, I intend to use HaXML.
> More specifically, I would be interested in the degree the Haskell
> community uses XML Schema, and if you were tempted to use it if we had
> an implementation. To further expand the question, how useful do you
> consider each of these components:
> * a validator
> * a pretty-printer
> * a translator from XML Schema to Haskell, similar to DtdToHaskell
> For the latter item, some runtime checking will definitely be
> restrictions such as value ranges for integers or minimum and maximum
> occurences of an element cannot, to my knowledge, be enforced through
> type definitions. Finally, I kindly ask anyone with relevant
> to point out other possible pitfalls.
> Vlad Dogaru
>  http://www.w3schools.com/Schema/
>  http://hackage.haskell.org/trac/summer-of-code/ticket/1120
>  http://www.cs.york.ac.uk/fp/HaXml/
>  http://www.cs.york.ac.uk/fp/HaXml/Xml2Haskell.html
More information about the Haskell-Cafe