SAX: Error Reporting (question 4 of 10)
davido at pragmaticainc.com
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.
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev