NodeList children = doc.getChildNodes(); NodeImpl node; for (int i = 0; i < children.getLength(); i++) { node = (NodeImpl) children.item(i); Iterator j = getDOMIterator(doc, node.getGID()); removeNodes(j);
try { Value ref = new NodeRef(doc.getDocId()); IndexQuery query = new IndexQuery(null, IndexQuery.TRUNC_RIGHT, ref); ArrayList nodes = domDb.findKeys(query); for (Iterator j = nodes.iterator(); j.hasNext();) { ref = (Value) j.next(); domDb.removeValue(ref); } domDb.flush(); } catch (BTreeException e) { LOG.warn("btree error while removing document", e); } catch (DBException e) { LOG.warn("db error while removing document", e); } catch (IOException e) { LOG.warn("io error while removing document", e); } return null;
				public Object start() {					NodeList children = doc.getChildNodes();					NodeImpl node;					for (int i = 0; i < children.getLength(); i++) {						node = (NodeImpl) children.item(i);						Iterator j = getDOMIterator(doc, node.getGID());						removeNodes(j);					}					domDb.remove(doc.getAddress());					return null;				}