}
RName attributes [] = new RName[0];
attributes = entity.getAttributeSet().toArray(attributes);
Arrays.sort(attributes);
for (RName attribute : attributes){
REntityEntry entry = entity.getEntry(attribute);
String name = attribute.stringValue();
String type = entry.getTypeValue();
String subtype = entry.getSubtype();
String access = (entry.readable ? "r":"") + (entry.writable ? "w":"");
String input = entry.getInput();
String default_value = entry.getDefaulttxt();
String comment = entry.getComment();
xout.opentag("field",
"name",name,
"type",type,
"subtype",subtype,