MappingElement cat = root.addChildElement(new MappingElement("Catalog")); //$NON-NLS-1$
MappingElement items = cat.addChildElement(new MappingElement("Items")); //$NON-NLS-1$
//choice node, non-visual, so it has no name
boolean exceptionOnDefault = false;
MappingChoiceNode choice = items.addChoiceNode(new MappingChoiceNode(exceptionOnDefault));
choice.setSource("xmltest.group.items"); //$NON-NLS-1$
choice.setMaxOccurrs(-1);
MappingCriteriaNode crit1 = choice.addCriteriaNode(new MappingCriteriaNode("xmltest.group.items.itemStatus = 'okay'", false)); //$NON-NLS-1$
MappingElement item = crit1.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.addAttribute(new MappingAttribute("ItemID", "xmltest.group.items.itemNum")); //$NON-NLS-1$ //$NON-NLS-2$