typeDesc = new TypeDesc(ParentBean.class);
FieldDesc field;
// An attribute with a specified QName
field = new AttributeDesc();
field.setFieldName("parentFloat");
field.setXmlName(new QName("", "parentAttr"));
typeDesc.addFieldDesc(field);
// An element with a specified QName
field = new ElementDesc();
field.setFieldName("parentStr");
field.setXmlName(new QName("", "parentElement"));
((ElementDesc)field).setNillable(true);
typeDesc.addFieldDesc(field);
return typeDesc;