[Haskell-cafe] HaXml: ampersand in attribute value
lennart at augustsson.net
Fri Feb 17 08:57:56 EST 2006
But speaking of HaXml bugs, I'm pretty sure HaXml doesn't handle
% correctly. It seem to treat % specially everywhere, but I think
it is only special inside DTDs. I have many XML files produced by
other tools that the HaXml parser fails to process because of this.
Malcolm Wallace wrote:
> 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.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe