Element information missing in error log
Posted: Wed Jan 30, 2019 8:31 am
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:
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:
Do you know if this is because of Saxon-EE or something because Oxygen editor? Thanks!
Best regards,
Radar
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
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