if (colName.equals("")) {
System.out.println("Cannot create a NULL collection");
return false;
}
Document doc = new DocumentImpl();
Element colEle = doc.createElement("collection");
colEle.setAttribute("compressed", "true");
colEle.setAttribute("name", colName);
doc.appendChild(colEle);
Element filEle = doc.createElement("filer");
filEle.setAttribute("class", "org.apache.xindice.core.filer.BTreeFiler");
//filEle.setAttribute("gzip", "true");
if ( table.containsKey(XMLTools.PAGE_SIZE) ) {
filEle.setAttribute("pagesize", (String)table.get(XMLTools.PAGE_SIZE));
}