Re: [Haskell] HaXml and XML Schema

2004-03-17 Thread Frank Atanassow
On Mar 10, 2004, at 8:56 AM, [EMAIL PROTECTED] wrote: Example (readers familiar with the problem may skip this): Dear Mr.Robert Smith. This structure is represented by the XML Schema How would you represent this in Haskell? A first idea may be to store the enclosing strings: data Salutation

Re: [Haskell] HaXml and XML Schema

2004-03-11 Thread Steffen Mazanek
Hello, thank you for the references. Looks promising. I will read it carefully. A nice solution I really like was found by Alastair Reid. He proposed to me (hope it is ok to cite this) the declaration: data Salutation = [Either Char Name] We think it will not scale well, too, however, it is ele

Re: [Haskell] HaXml and XML Schema

2004-03-10 Thread Johan Jeuring
I have started thinking about an extension of HaXml to better support XML Schema, i.e., to generate appropriate types (like DtdToHaskell) automatically (cf. Castor for Java). However, it is not obvious to me how to model mixed content (character data appears alongside subelements, i.e., it is not c

[Haskell] HaXml and XML Schema

2004-03-09 Thread s_mazanek
Hello, I have started thinking about an extension of HaXml to better support XML Schema, i.e., to generate appropriate types (like DtdToHaskell) automatically (cf. Castor for Java). However, it is not obvious to me how to model mixed content (character data appears alongside subelements, i.e., it