[ http://issues.apache.org/jira/browse/XERCESJ-1172?page=comments#action_12419505 ]
Michael Glavassevich commented on XERCESJ-1172: ----------------------------------------------- Ivan, I'm not sure what an "ErrorList" is. This isn't a SAX concept nor is it something built by the parser so I'm going to assume this is either your structure or something some other application is building. If you have a testcase (java code) which actually exhibits a problem with the parser, please attach it. The zip you included only contained documents. > 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 > Attachments: example.zip > > 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]
