[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: Xerces 2 - SAX Attributes and Line Numbers
From:       Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date:       2009-05-05 23:03:43
Message-ID: OFE13F2939.44817C94-ON852575AD.007D026E-852575AD.007EAF98 () ca ! ibm ! com
[Download RAW message or body]

Hi Pete,

Xerces doesn't track the position of attributes. I don't know of any XM=
L
parser that does. It imposes additional overhead for information that a=
n
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: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Peter Farland <pfarland@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-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org=

[Attachment #3 (text/html)]

<html><body>
<p><tt>Hi Pete,</tt><br>
<br>
<tt>Xerces doesn't track the position of attributes. I don't know of an=
y 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 J=
ava SE.</tt><br>
<br>
<tt>Thanks.</tt><br>
<br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: mrglavas@ca.ibm.com</tt><br>
<tt>E-mail: mrglavas@apache.org</tt><br>
<br>
<tt>Peter Farland &lt;pfarland@adobe.com&gt; wrote on 05/05/2009 06:33:=
26 PM:<br>
<br>
&gt; Hi,<br>
&gt; <br>
&gt; Unfortunately the SAX Attributes API does not provide an API to <b=
r>
&gt; query for the line number on which an attribute was declared.<br>
&gt; <br>
&gt; I took a quick look through the Xerces2-J JIRA bug repository and =
<br>
&gt; didn't see any enhancements logged for this limitation there eithe=
r.<br>
&gt; <br>
&gt; Does anyone know if there's a Xerces-specific API to get the <br>
&gt; original line number for an attribute (as attributes are often not=
 <br>
&gt; on the same as the opening tag)?<br>
&gt; <br>
&gt; Thanks,<br>
&gt; &nbsp; &nbsp; Pete<br>
&gt; <br>
&gt; ------------------------------------------------------------------=
---<br>
&gt; To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org<br>
&gt; For additional commands, e-mail: j-users-help@xerces.apache.org</t=
t><tt>&nbsp;<br>
</tt></body></html>=


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic