for (ArrayInfo<T, C> a : arrays) {
writeArray(a,schema);
schema._pcdata(newline);
}
for (Map.Entry<String,AttributePropertyInfo<T,C>> e : attributeDecls.entrySet()) {
TopLevelAttribute a = schema.attribute();
a.name(e.getKey());
if(e.getValue()==null)
writeTypeRef(a,stringType,"type");
else
writeAttributeTypeRef(e.getValue(),a);