seq.addChildElement(new MappingElement("FirstName", "xmltest.employeesDoc19.firstName")); //$NON-NLS-1$ //$NON-NLS-2$
seq.addChildElement(new MappingElement("LastName", "xmltest.employeesDoc19.lastName")); //$NON-NLS-1$ //$NON-NLS-2$
MappingElement subordinates = seq.addChildElement(new MappingElement("Subordinates")); //$NON-NLS-1$
//recursive piece
MappingRecursiveElement employee = (MappingRecursiveElement)subordinates.addChildElement(new MappingRecursiveElement("Employee", "xmltest.employeesDoc19")); //$NON-NLS-1$ //$NON-NLS-2$
employee.setSource("xmltest.employeesRecursiveDoc19"); //$NON-NLS-1$
employee.setMinOccurrs(0);
employee.setMaxOccurrs(-1);
if (useRecursiveCriteria){
employee.setCriteria("xmltest.employeesDoc19.employeeNum = '04'"); //$NON-NLS-1$
}
employee.setRecursionLimit(recursionLimit > 0 ? recursionLimit:10, exceptionOnLimit);
return doc;
}