[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
How to handle "newline" characters in an XML parser.
- From: "Redefined Horizons" <redefined.horizons@gmail.com>
- To: xml-dev@lists.xml.org
- Date: Tue, 5 Dec 2006 11:24:55 -0800
I'm nearing the completion of an open source XML parser in Java. (It's
an event-based, pull parser.)
I'm having some trouble figuring out how to handle "newline"
characters in XML text files on different platforms. I typically
ignore all whitespace in the parser, but I wanted to count newline
characters to aid in errror reporting. (The parser validates for
common XML syntax errors.)
I've taken a look at the XML specs, but didn't completely understand
what they had to say about newline characters.
Do any of the experienced XML developers have some advice on the best
way to handle newline characters in what I hope will be a
"cross-platform" manner?
Thanks,
Scott Huey
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]