Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Missing file from last commit
(no author)02c66c04f275
diff --git a/source/de/anomic/soap/AbstractService.java b/source/de/anomic/soap/AbstractService.javaindex cb44f0928..c143c4f3c 100644--- a/source/de/anomic/soap/AbstractService.java+++ b/source/de/anomic/soap/AbstractService.java@@ -55,6 +55,7 @@ import java.util.HashMap;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;+import javax.xml.parsers.ParserConfigurationException;import org.apache.axis.AxisFault;import org.apache.axis.Message;@@ -62,6 +63,7 @@ import org.apache.axis.MessageContext;import org.apache.axis.message.SOAPEnvelope;import org.apache.axis.message.SOAPHeaderElement;import org.w3c.dom.Document;+import org.w3c.dom.Element;import de.anomic.http.httpHeader;import de.anomic.http.httpTemplate;@@ -295,5 +297,25 @@ public abstract class AbstractService {return doc;}++ public Document createNewXMLDocument(String rootElementName) throws ParserConfigurationException {+ // creating a new document builder factory+ DocumentBuilderFactory newDocBuilderFactory = DocumentBuilderFactory.newInstance();++ // creating a new document builder+ DocumentBuilder newDocBuilder = newDocBuilderFactory.newDocumentBuilder();++ // creating a new xml document+ Document newXMLDocument = newDocBuilder.newDocument();++ if (rootElementName != null) {+ // creating the xml root document+ Element rootElement = newXMLDocument.createElement(rootElementName);+ newXMLDocument.appendChild(rootElement);+ }++ return newXMLDocument;+ }+}