HaXml has a tool for generating Haskell data types from DTD and a tool for generating Haskell data types from XSD: http://hackage.haskell.org/package/HaXml
The executables are called XsdToHaskell and DtdToHaskell.
If you are on Windows and you have PATH modified by the Haskell platform, you need to call it like this: xsdtohaskell < path_to.xsd > path_to.hs
Generated files are a good starting point.
sclv
source share