{
//
// Process each top level property from root of doc
//
Element[] properties = XmlUtils.getAllElements(newDoc);
SetRequest set = new SimpleSetRequest();
for (int i = 0; i < properties.length; i++)
{
QName propQName = XmlUtils.getElementQName(properties[i]);
if (getMetadata().isReadOnlyExternal(propQName))
{
Object[] filler = { propQName };
throw new UnableToPutResourcePropertyDocumentFault(_MESSAGES.get("PutRPDocReadOnlyError", filler));
}
SetRequestComponent insertComp = new InsertRequest(propQName, properties[i]);
set.addRequestComponent(insertComp);
}
return set;
}