David Megginson wrote:
>Originally, SAX was designed to work with existing XML parsers -- it
>was only later that things turned around and people started designing
>parsers to work with SAX. Reporting a position right after the markup
>worked best with the existing XML parsers.
>Actually, I'm not sure I see the advantage of reporting a position
>before or inside. Ideally, you'd have the whole range (start-end),
>but if you cannot have that, one position is just as good as another
>for reporting errors to the user.
I have thought this is quite arbitrary, just hasn't been sure. The
reason why I ask is that we are specifying the locator behavior for Perl
SAX and we want neither introduce unnecessary differences from Java nor
follow the Java API blindly.