Hi Mukul, Sure, a large of invalid elements could be a problem for error reporting. But there should be some standard ways to manage that situation. Thanks again for your response. Herong On Saturday, June 20, 2020, 12:13:44 PM GMT+8, Mukul Gandhi <muk...@apache.org> wrote: Hi Herong, On Fri, Jun 19, 2020 at 5:37 PM Herong Yang <herong_y...@yahoo.com> wrote: The current error report is clear and useful. But I still think it will be nice if both 'A' and 'B' are listed in the error report, since both of them are not expected to be there.
To have this facility, for XML Schema error reporting, I think we need to consider two extremes as follows:For your use case,At one side, if the number of XML sibling invalid elements are less then the error reporting improvements you're suggesting seems ok to me.On the other hand, if the number of XML sibling invalid elements are large (say couple of hundred or even thousands), then IMHO your suggested error reporting would not look ok. -- Regards, Mukul Gandhi