public function saveAs($strXML, $outputFile)
    {
        if ($strXML == '')
            throw new Exception('XML Data not specified');
        
        if ($outputFile == '')
            throw new Exception('Output Filename along extension not specified');
        
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '/saveAs?newfilename=' . $outputFile;
        $signedURI = Utils::Sign($strURI);
        $responseStream = Utils::processCommand($signedURI, "POST", "XML", $strXML);
        
        $v_output = Utils::validateOutput($responseStream);
        
        if ($v_output === '') {
            $strURI = Product::$baseProductUri . '/storage/file/' . $outputFile;
            $signedURI = Utils::Sign($strURI);
            $responseStream = Utils::processCommand($signedURI, "GET", "", "");

            $outputPath = AsposeApp::$outPutLocation . $outputFile;
            Utils::saveFile($responseStream, $outputPath);
            
            return $outputPath;
        } else {
            return $v_output;
        }         
    }
public function saveAs($strXML, $outputFile)
    {
        if ($strXML == '')
            throw new Exception('XML Data not specified');
        
        if ($outputFile == '')
            throw new Exception('Output Filename along extension not specified');
        
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '/saveAs?newfilename=' . $outputFile;
        $signedURI = Utils::Sign($strURI);
        $responseStream = Utils::processCommand($signedURI, "POST", "XML", $strXML);
        
        $v_output = Utils::validateOutput($responseStream);
        
        if ($v_output === '') {
            $strURI = Product::$baseProductUri . '/storage/file/' . $outputFile;
            $signedURI = Utils::Sign($strURI);
            $responseStream = Utils::processCommand($signedURI, "GET", "", "");

            $outputPath = AsposeApp::$outPutLocation . $outputFile;
            Utils::saveFile($responseStream, $outputPath);
            
            return $outputPath;
        } else {
            return $v_output;
        }         
    }
public function saveAs ( $ strXML , $ outputFile ) { if ( $ strXML == '' ) throw new Exception ( 'XML Data not specified' ) ; if ( $ outputFile == '' ) throw new Exception ( 'Output Filename along extension not specified' ) ; $ strURI = Product :: $ baseProductUri . '/cells/' . $ this -> getFileName ( ) . '/saveAs?newfilename=' . $ outputFile ; $ signedURI = Utils :: Sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , "POST" , "XML" , $ strXML ) ; $ v_output = Utils :: validateOutput ( $ responseStream ) ; if ( $ v_output === '' ) { $ strURI = Product :: $ baseProductUri . '/storage/file/' . $ outputFile ; $ signedURI = Utils :: Sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , "GET" , "" , "" ) ; $ outputPath = AsposeApp :: $ outPutLocation . $ outputFile ; Utils :: saveFile ( $ responseStream , $ outputPath ) ; return $ outputPath ; } else { return $ v_output ; } }
Convert Excel Workbook with Additional Settings

@param xml $strXML Data in XML format.
@param string $outputFile The name of output file.

@return string Returns the file path.
@throws Exception
Convert Excel Workbook with Additional Settings