MappingChoiceNode choice = items.addChoiceNode(new MappingChoiceNode());
choice.setSource("xmltest.group.items"); //$NON-NLS-1$
choice.setMaxOccurrs(-1);
MappingCriteriaNode crit = choice.addCriteriaNode(new MappingCriteriaNode("xmltest.group.items.itemStatus = 'okay'", false)); //$NON-NLS-1$
MappingElement item = crit.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.addAttribute(new MappingAttribute("ItemID", "xmltest.group.items.itemNum")); //$NON-NLS-1$ //$NON-NLS-2$
item.addChildElement(new MappingElement("Name", "xmltest.group.items.itemName")) //$NON-NLS-1$ //$NON-NLS-2$
.setNormalizeText(normMode)
.setNillable(true);
item.addChildElement(new MappingElement("Quantity", "xmltest.group.items.itemQuantity")) //$NON-NLS-1$ //$NON-NLS-2$
.setDefaultValue("0"); //$NON-NLS-1$