params.put(RPCDefaultMessage.NAME, childName);
String result = (String) runRemoteCommand("RemoveCollection", params);
if (!result.equals("yes")) {
throw new XMLDBException(ErrorCodes.INVALID_COLLECTION,
"Cannot remove child collection");
}
} catch (Exception e) {
throw new XMLDBException(ErrorCodes.INVALID_COLLECTION,
"Cannot remove child collection", e);
}
}