hi,

this is different feature form giving you offset into physical octet stream
as it would be very hard to do it through encoding if buffering were to work...

however it gives offset into logical absolute offset (in characters) in current
XML entity. having XMLLocator.getCurrentEntityAbsoluteOffset() allows
me to report start and end tag positions in input XML and is necessary
for me to have Xerces 2 to pass tests and be fully used in my XPP2 (see
http://www.extreme.indiana.edu/soap/xpp)

i posted this patch describing what it does in hope that some people
may find it useful too.

thanks for looking into it,

alek

Andy Clark wrote:

> Aleksander Slominski wrote:
> > FYI: here is patch that augments XMLLocator to allow reporting
> > parser absolute character position in current entity and uses
> > this capability to augment XNI pipeline to report start
> > tag and end tag positions.
>
> Sorry if I'm forgetting but did we actually resolve if this
> feature is even useful considering that entities can be in
> different character encodings? Therefore, absolute character
> positions could not be mapped back to actual offsets within
> the physical files.
>
> Please refresh my memory. But regardless, if we decide to
> include it, it'll have to wait for the next release. I think
> we're basically frozen except for bug fixes.
>
> --
> Andy Clark * [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to