Page 1 of 1

Element information missing in error log

Posted: Wed Jan 30, 2019 8:31 am
by radar
Hi Experts,

I use the Oxygen editor to generate the XML schemas and use for validation (saxon engine). Now I noticed one symptom as following:
1. If in the schema the element maximum repetition is 1, and I generate XML with two elements, then the error code looks like following:

Code: Select all


<G_SG29>
...
<S_IMD>
<C_C272>
<D_7081>Z05</D_7081>
</C_C272>
<C_C273>
<D_7009>Z04</D_7009>
</C_C273>
</S_IMD>
<S_IMD>
<C_C272>
<D_7081>Z05</D_7081>
</C_C272>
<C_C273>
<D_7009>Z04</D_7009>
</C_C273>
</S_IMD>
</G_SG29>
Engine name: Saxon-EE 9.8.0.12
Severity: error
Description: In content of element <G_SG29>: The content model does not allow element [u]<S_IMD> to appear more than once[/u].
Start location: 324:16
2. If in the schema the element maximum repetition is more than 1 (for example 2), and I generate XML with 3 elements, then the error code looks like following:

Code: Select all

        
<G_SG29>
<S_DTM>
<C_C507>
<D_2005>9</D_2005>
<D_2380>D_23802</D_2380>
<D_2379>102</D_2379>
</C_C507>
</S_DTM>
<S_DTM>
<C_C507>
<D_2005>9</D_2005>
<D_2380>D_23803</D_2380>
<D_2379>102</D_2379>
</C_C507>
</S_DTM>
<S_DTM>
<C_C507>
<D_2005>9</D_2005>
<D_2380>D_23803</D_2380>
<D_2379>102</D_2379>
</C_C507>
</S_DTM>
</G_SG29>

Engine name: Saxon-EE 9.8.0.12
Severity: error
Description: Too many occurrences of repeating element: [u]found 3 occurrences but maxOccurs is 2[/u]
Start location: 345:16

Do you know if this is because of Saxon-EE or something because Oxygen editor? Thanks!

Best regards,
Radar

Re: Element information missing in error log

Posted: Thu Jan 31, 2019 12:35 pm
by Radu
Hi Radar,

I do not understand what the problem is, according to how you describe the schema as being written there should be errors reported in both instances. Is is something with the particular message? Could you elaborate?

Regards,
Radu