public static final String DATA_MODEL = "DataModel";
public static final String ARRAY_MODEL = "ArrayModel";
public void generateXml(DataModelXmlGenerator generator, OutputStream out, DataModel model) throws IOException {
DataModelVector children = model.getChildren();
DataModelEnumeration en = children.getEnumeration();
generator.startTag(out, ARRAY_MODEL, model.getFieldName());
generator.newLine(out);
generator.incrementIndent();
while(en.hasMore()) {
DataModel dataModel = en.next();
generator.indent(out);
generator.startTag(out, DATA_MODEL, dataModel.getClass().getName());
generator.newLine(out);
generator.incrementIndent();