[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAX: Error Reporting (question 4 of 10)

  • From: David Ornstein <davido@p...>
  • To: xml-dev@i...
  • Date: Sat, 03 Jan 1998 13:40:06 -0800

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.


David Ornstein
Pragmatica, Inc.

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...)


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.