XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
How to handle "newline" characters in an XML parser.

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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS