Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - >Thread Next - Re: [xml-dev] How to handle "newline" characters in an XML parser. How to handle "newline" characters in an XML parser.To: xml-dev@-----.---.--- Date: 12/5/2006 7:25:00 PM 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
