case eXMLOutput:
txToDocHandlerFactory::createHandlerWith(txOutputFormat* aFormat,                                         const nsAString& aName,                                         PRInt32 aNsID,                                         txAXMLEventHandler** aHandler){    *aHandler = nsnull;    switch (aFormat->mMethod) {        case eMethodNotSet:        {            NS_ERROR("How can method not be known when root element is?");            return NS_ERROR_UNEXPECTED;        }        case eXMLOutput:        case eHTMLOutput:        {            *aHandler = new txMozillaXMLOutput(aName, aNsID, aFormat,                                               mSourceDocument,                                               mResultDocument,                                               mObserver);            break;        }        case eTextOutput:        {            *aHandler = new txMozillaTextOutput(mSourceDocument,                                                mResultDocument,                                                mObserver);            break;        }    }    NS_ENSURE_TRUE(*aHandler, NS_ERROR_OUT_OF_MEMORY);    return NS_OK;}