Invalid ErroeList after SAX parsing when XML contains subtables
---------------------------------------------------------------

         Key: XERCESJ-1172
         URL: http://issues.apache.org/jira/browse/XERCESJ-1172
     Project: Xerces2-J
        Type: Bug

  Components: SAX  
    Versions: 2.8.0    
 Environment: WinXP SP2, P4-2400, 1Gb RAM
Java 2 SDK 1.5
    Reporter: Ivan Skorodumov


My XML contains a table, which contains subtable with more then one lines.
It looks like:
<a>
  <b>
      <c>
         <d1>123</d1>
         <d2>234</d2>
      </c>
      <c>
         <d1>aaa</d1>
         <d2>456</d2>
      </c>
   </b>
</a>

Let's consider, that field 'd1' must be a number, so, element "<d1>aaa</d1>" 
must be an error element.
But, if the error is in the line 2 of the subtable 'c' (in example it's element 
"<d1>aaa</d1>"), ErrorList "says" that the error is in the line 1 (in example 
it's element "<d1>123</d1>").

So, for this example, after parsing with SAX parser the ErrorList will contain 
one line, that will link to the element "a/b/c[1]/d1" with error text approx. 
"the value 'aaa' does not appear to the element, that must be a number".
I think, it's an error, 'cause this line in the ErrorList must link to the 
element "a/b/c[2]/d1".
Thanks!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to