Search in sources :

Example 1 with GenericRequester

use of com.twinsoft.convertigo.engine.requesters.GenericRequester in project convertigo by convertigo.

the class Sequence method createDOM.

public Document createDOM() throws EngineException {
    Document doc = null;
    try {
        if (requester == null)
            doc = new DefaultRequester().createDomWithNoXMLDeclaration(getEncodingCharSet());
        else
            doc = ((GenericRequester) requester).createDomWithNoXMLDeclaration(getEncodingCharSet());
        Element rootElement = doc.createElement("document");
        doc.appendChild(rootElement);
    } catch (Exception e) {
    }
    return doc;
}
Also used : GenericRequester(com.twinsoft.convertigo.engine.requesters.GenericRequester) XmlSchemaElement(org.apache.ws.commons.schema.XmlSchemaElement) Element(org.w3c.dom.Element) Document(org.w3c.dom.Document) DefaultRequester(com.twinsoft.convertigo.engine.requesters.DefaultRequester) EngineException(com.twinsoft.convertigo.engine.EngineException)

Aggregations

EngineException (com.twinsoft.convertigo.engine.EngineException)1 DefaultRequester (com.twinsoft.convertigo.engine.requesters.DefaultRequester)1 GenericRequester (com.twinsoft.convertigo.engine.requesters.GenericRequester)1 XmlSchemaElement (org.apache.ws.commons.schema.XmlSchemaElement)1 Document (org.w3c.dom.Document)1 Element (org.w3c.dom.Element)1