/** Creates new document without namespace binding. */ public void createEmptyDocument() { Document doc = XMLTools.create(); // note: removed the namespace in order to ensure WMS 1.1.1 certifiability Element root = doc.createElement("ServiceExceptionReport"); doc.appendChild(root); setRootElement(root); }
@Override public void createEmptyDocument() { Document doc = XMLTools.create(); Element root = doc.createElementNS(CommonNamespaces.CSW202NS.toASCIIString(), "csw202:Transaction"); setRootElement(root); }
/** Creates new document within the OGC namespace. */ public void createEmptyDocumentNS() { Document doc = XMLTools.create(); Element root; try { root = doc.createElementNS(OGCNS.toURL().toExternalForm(), POGC + "ServiceExceptionReport"); doc.appendChild(root); setRootElement(root); } catch (MalformedURLException e) { // cannot happen. Really. } }