return 0;
DocumentSet docs = null; DBBroker broker = null; try { broker = pool.get(); if (resource == null) { docs = broker.getDocumentsByCollection( user, parent.collection.getName()); } else { docs = new DocumentSet(); String id = parent.getName() + '/' + resource; DocumentImpl doc = parent.collection.getDocument(id); docs.add(doc); } XUpdateProcessor processor = new XUpdateProcessor(pool, user); Modification modifications[] = processor.parse(new InputSource(new StringReader(xupdate))); long mods = 0; for (int i = 0; i < modifications.length; i++) { mods += modifications[i].process(docs); } broker.sync(); return mods; } catch (ParserConfigurationException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage()); } catch (IOException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage()); } catch (SAXException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage()); } catch (PermissionDeniedException e) { throw new XMLDBException( ErrorCodes.PERMISSION_DENIED, e.getMessage()); } catch (EXistException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage()); } finally { pool.release(broker); }
	public long updateResource(String arg0, String arg1)		throws XMLDBException {		return 0;	}