xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

How to handle "newline" characters in an XML parser.


  • From: "Redefined Horizons" <redefined.horizons@...>
  • To: xml-dev@...
  • 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]
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2010 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor