ModSAX: Proposed Core Features

Duffy, Bruce Bruce.Duffy at westgroup.com
Thu Mar 11 16:47:20 GMT 1999


Hi folks,

One feature I'd really like to see is a Locator.getByteOffset()
method.  Obviously this feature would have to be optional, since not
all XML inputs are indexable files.

James Clark's non-SAX API for XP implements this method for startElement(),
but not for the characters() callback, which unfortunately is exactly what
I need it for.  I could hack XP or another parser, but I'd much rather work
within the context of SAX.

One name for such a feature is:

	http://xml.org/sax/features/locator.byteOffsets
	  
	(true) means getByteOffset() is supported for startElement,
	endElement, and character callbacks.  (false) means it is not
	supported for those callbacks.


Alternatively, if there's some reason why this feature is a Bad Idea,
I'd like to know why!

Thanks,


	Bruce Duffy
	West Group

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/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list