Re: Line Endings
"jason heddings" <[email protected]>
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <004a01c668a0$d6d04fb0$6500a8c0@enterprise> |
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:[email protected]] Sent: Tuesday, 04 April, 2006 06:09 To: [email protected] 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.