[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SAX: Error Reporting (question 4 of 10)
David Megginson wrote [01:19 PM 1/3/98 ]: >David Ornstein writes: > > > I'd really like to see the column information. I'd also like to have an > > offset from the start of the stream. Somebody (Tim? James?) said that > > their parser did all three. I've often needed all of them. > >Thanks for the reply. Do you want the offset in octets or characters? >Characters would probably be manageable, but octets would be trickier >for people to implement (especially for UTF-8 or UTF-16). I suspect octet offsets are more useful so one can do pointer math. Clearly one can transform between offsets and line/column positions with a table indexed by line number, so this could be on either the Client side or the Implementation side. If we're going to go to the trouble of adding this to SAX (my vote: it's nice but I can live without), I'd do the thing that's nicest for the Client. Thanks, David ================================ David Ornstein Pragmatica, Inc. http://www.pragmaticainc.com xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|