> I discovered a problem with Xml2Haskell which is possibly a (small) bug.

You are right.  Thanks for the report.  I have made a patch available
at    ftp://ftp.cs.york.ac.uk/pub/haskell/HaXml/patch-1.02-dtdtohaskell


By the way,

| Here's the DTD:
| 
|   <!DOCTYPE Root [
|   <!ELEMENT Root ( Group* )>
|   <!ELEMENT Group ( Group | Item* )>
|   <!ATTLIST Group
|             name    CDATA  #REQUIRED
|   >
|   <!ATTLIST Item
|             name    CDATA  #REQUIRED
|             val     CDATA  #REQUIRED
|   >
|   ]>

There is an error in your DTD, which unfortunately HaXml did not spot,
and it generated the code you expected anyway!  A definition for Item
is missing - HaXml has assumed

    <!ELEMENT Item EMPTY>

Regards,
    Malcolm

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to