Element information missing in error log

This should cover W3C XML Schema, Relax NG and DTD related problems.
radar
Posts: 1
Joined: Wed Jan 30, 2019 8:19 am

Element information missing in error log

Post 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
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Element information missing in error log

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply