Looking at the before-and-after versions of HaXml code that I have modified
[1] (with the primary goal of adding namespace support, but also numerous
other changes), it seems that the parser always allowed PIs to appear
before and after the DTD, but did not store them in the resulting data
stru
"S. Alexander Jacobson" <[EMAIL PROTECTED]> writes:
> I modified the Prolog type to be
>data Prolog = Prolog (Maybe XMLDecl) [Misc] (Maybe DocTypeDecl) [Misc]
> and then modified the Prolog parser
Thanks for spotting this bug and providing a fix. I also note that
the XML spec allows "misc*"
I modified the Prolog type to be
data Prolog = Prolog (Maybe XMLDecl) [Misc] (Maybe DocTypeDecl) [Misc]
and then modified the Prolog parser (which
actually was correct) to actually use the misc
values in constucting the Prolog. I replace the
prolog function in pretty.hs with
prolog (Prolo