Hi Pete,

Xerces doesn't track the position of attributes. I don't know of any XML
parser that does. It imposes additional overhead for information that an
application is unlikely to be read, primarily because it isn't exposed
through any of the XML APIs (JAXP, JAXB, etc...) available in Java SE.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Peter Farland <pfarl...@adobe.com> wrote on 05/05/2009 06:33:26 PM:

> Hi,
>
> Unfortunately the SAX Attributes API does not provide an API to
> query for the line number on which an attribute was declared.
>
> I took a quick look through the Xerces2-J JIRA bug repository and
> didn't see any enhancements logged for this limitation there either.
>
> Does anyone know if there's a Xerces-specific API to get the
> original line number for an attribute (as attributes are often not
> on the same as the opening tag)?
>
> Thanks,
>     Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to