MappingChoiceNode choice = ordersWrapper.addChoiceNode(new MappingChoiceNode(false));
choice.setSource("xmltest.orders"); //$NON-NLS-1$
choice.setMaxOccurrs(-1);
MappingCriteriaNode crit = choice.addCriteriaNode(new MappingCriteriaNode(criteria, false));
MappingElement order = crit.addChildElement(new MappingElement("Order")); //$NON-NLS-1$
order.addAttribute(new MappingAttribute("OrderID", "xmltest.orders.orderNum")); //$NON-NLS-1$ //$NON-NLS-2$
MappingSequenceNode seq6 = order.addSequenceNode(new MappingSequenceNode());
seq6.addChildElement(new MappingElement("OrderDate", "xmltest.orders.orderDate")); //$NON-NLS-1$ //$NON-NLS-2$
seq6.addChildElement(new MappingElement("OrderQuantity", "xmltest.orders.orderQty")); //$NON-NLS-1$ //$NON-NLS-2$