SAX: Error Reporting (question 4 of 10)

David Ornstein davido at
Sat Jan 3 21:39:24 GMT 1998

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 at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list