XMLField field = ((XMLField) (mapping).getField());
String schemaTypeString = getSchemaTypeForElement(field, mapping.getAttributeElementClass(), workingSchema);
Element element;
if (field.usesSingleNode()) {
SimpleType st = new SimpleType();
org.eclipse.persistence.internal.oxm.schema.model.List list = new org.eclipse.persistence.internal.oxm.schema.model.List();
if (schemaTypeString == null) {
schemaTypeString = getSchemaTypeString(XMLConstants.ANY_SIMPLE_TYPE_QNAME, workingSchema);
}
list.setItemType(schemaTypeString);
st.setList(list);
element = buildElement(field.getXPathFragment(), null, Occurs.ZERO, null);
element.setSimpleType(st);
} else {
element = buildElement(field.getXPathFragment(), schemaTypeString, Occurs.ZERO, null);