[Haskell-cafe] HaXml: ampersand in attribute value

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Feb 17 08:11:40 EST 2006


Koen.Roelandt at mineco.fgov.be wrote:
> HaXml seems to choke on finding an ampersand in an attribute value. Is 
> this normal? Is there any workaround?

Yes, it is expected.  An ampersand indicates the start of a reference, 
e.g. < or   If there is no semicolon to indicate the end of the 
reference, then it is a parse error.  The XML specification is quite 
clear that neither & nor < are valid standalone characters in an 
attribute value.

Regards,
     Malcolm


More information about the Haskell-Cafe mailing list