[Expat-discuss] Line Endings

jason heddings jason at heddings.com
Tue Apr 25 21:45:42 CEST 2006


I ended up finding the problem...  It had to do with the way the file was
being opened, rather than a line-ending issue.

--jah


-----Original Message-----
From: Mark [mailto:11mjazbdg02 at sneakemail.com] 
Sent: Tuesday, 04 April, 2006 06:09
To: jason at heddings.com
Subject: RE: [Expat-discuss] Line Endings

> I am having a problem parsing files that do not have Unix-style line
> endings.  If I take the same file and parse it with Windows-style line
> endings, the Expat parser errors.

Can you be more specific?  I have parsed (with expat) files with UNIX
and Windows line endings without many problems.  The only time I found
a difficulty was if the line endings were significant parts of the data.

The only workaround for this that I could design is to use custom
"escape sequences" to represent the different characters of the line
endings as any XML parser will "normalise" line endings to just a line
feed.

Mark.





More information about the Expat-discuss mailing list