Re: xml declaration problem, probably BOM

MJ Ray <[email protected]> Mon, 23 Apr 2007 09:42:31 +0100
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <462c7177.z+84z8GaVnr06seU%[email protected]>
"bryan rasmussen" <[email protected]> wrote:
> [...] I am supposing that there
> is a BOM (haven't taken the time to open it in a hex editor to check)
> but IIRC according to the latest edition of XML 1.0 spec BOM is
> allowed?
>
> Am I incorrect in my interpretation of the error response I am receiving?
>
> If the second, how do I open an input file and parse it?

BOM is allowed, but I think MzScheme's read routine should handle it
and doesn't.  I'm currently reading such files in by skipping forwards
to the first '<' and then handing over to the XML parser.

Hope that helps,
-- 
MJ Ray - see/vidu http://mjr.towers.org.uk/email.html
Experienced webmaster-developers for hire http://www.ttllp.co.uk/
Also: statistician, sysadmin, online shop builder, workers co-op.
Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/