schema xsd = (schema) this.get_owner();
simpleType simple = ctx.getSimpleType(xsd.expandQName(ctx.getDefaultNS(),itemType,m));
String type = null;
if (simple==null) type = expandQName(ctx.getDefaultNS(),itemType, m);
RDFList list = (RDFList) rdf.as(RDFList.class);
for (ExtendedIterator i = list.iterator(); ok && i.hasNext(); ) {
RDFNode n = (RDFNode) i.next();
if (simple!=null) ok=simple.toXML(attr,n,ctx);
else ok=xsd.toXML(attr,n,type,ctx);
}
} catch (Exception e) { // non-fatal