Troubleshooting
Problem
Using minOccurs creates an empty element when set to 1.
Symptom
Using minOccurs creates an empty element when set to 1.
Cause
When "minOccurs=1" is contained within an XML Schema Definition (XSD), it means that the first occurrence of the element is required. The element does not need to contain any data, it just needs to be present.
Environment
Using an XML file based on a native XML Schema file (XSD) with minOccurs set to 1 for an element.
Diagnosing The Problem
Using Native XSD to validate a XML input file and minOccurs is set to 1 in the XSD file. An empty element is created in the output file.
Resolving The Problem
If you do not wish to have an empty element then you should use 'minOccurs=0'.
Was this topic helpful?
Document Information
More support for:
IBM Transformation Extender
Software version:
9.0.0.0, 8.4.1.4, 8.4.1.3, 8.4.1.2, 8.4.1.1, 8.4.1.0, 8.4.1, 8.4.0.5, 8.4.0.4, 8.4.0.3, 8.4.0.2, 8.4.0.1, 8.4.0.0, 8.3.0.6, 8.3.0.5, 8.3.0.4, 8.3.0.3, 8.3.0.2, 8.3.0.1, 8.3.0.0
Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows, z/OS
Document number:
285151
Modified date:
16 June 2018
UID
swg21987288