code: public static base_responses add(nitro_service client, nsxmlnamespace resources[]) throws Exception {
  		base_responses result = null;
  		if (resources != null && resources.length > 0) {
  			nsxmlnamespace addresources[] = new nsxmlnamespace[resources.length];
  			for (int i=0;i<resources.length;i++){
  				addresources[i] = new nsxmlnamespace();
  				addresources[i].prefix = resources[i].prefix;
  				addresources[i].Namespace = resources[i].Namespace;
  			}
  			result = add_bulk_request(client, addresources);
  		}
  		return result;
  	}
docs: Use this API to add nsxmlnamespace resources.