OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]
  • From: David Ornstein <davido@pragmaticainc.com>
  • To: xml-dev@ic.ac.uk
  • Date: Sat, 03 Jan 1998 13:40:06 -0800

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@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS