A question of SAX specification
David Megginson
david at megginson.com
Fri Oct 1 15:24:57 BST 1999
Toshimitsu Suzuki <tsuzu at flab.fujitsu.co.jp> writes:
> I have a question the behavier of getColumnNumber in Locator. I
> want to get the end position of some xml
> fragment(ie.<element>content</element>) in startElement(). But, one
> SAX parser replies the end tag's ">", another SAX parser replies
> "c". Which is correct?
The idea of Locator was simply to help get a user close to an error in
a document: exactly how it works is deliberately unspecified, mainly
to keep life easy for parser writers (since different parsers use
different tokenization and look-ahead schemes). Locator is not
designed to let you extract text strings from the original document.
All the best,
David
--
David Megginson david at megginson.com
http://www.megginson.com/
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 unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe 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