You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Ivan Skorodumov (JIRA)" <xe...@xml.apache.org> on 2006/07/06 09:46:30 UTC
[jira] Updated: (XERCESJ-1172) Invalid ErroeList after SAX parsing
when XML contains subtables
[ http://issues.apache.org/jira/browse/XERCESJ-1172?page=all ]
Ivan Skorodumov updated XERCESJ-1172:
-------------------------------------
Attachment: example.zip
It's the real example for this issue.
The main XSD scheme is Contract.xsd.
The error is in the element "Contract/ContractSpecification/cat_ru:SpecificationGoods[2]/cat_ru:MeasureUnitQualifierCode" (it's must be a number, but it's "sdf"), but ErrorList "says" as that an error is in the element "Contract/ContractSpecification/cat_ru:SpecificationGoods[1]/cat_ru:MeasureUnitQualifierCode", which value is "111", so it's good value.
> 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org