protected function addOuterTags($inputXml)
    {
        // start xml with encoding tag
        $finalXml = $this->xmlStart();
        
        // open script tag
        $finalXml .= "\n<script>";
        
        // include override of submit command if specified
        if ($this->getOption('sbmjobCommand')) {
            $sbmJobCommand = $this->getOption('sbmjobCommand');
            $finalXml .= "\n<sbmjob>{$sbmJobCommand}</sbmjob>";
        }
        
        // inner "meat" of the XML
        $finalXml .= "\n$inputXml";
        
        // close script tag
        $finalXml .= "\n</script>";
        
        return $finalXml; 
    }
protected function addOuterTags($inputXml)
    {
        // start xml with encoding tag
        $finalXml = $this->xmlStart();
        
        // open script tag
        $finalXml .= "\n<script>";
        
        // include override of submit command if specified
        if ($this->getOption('sbmjobCommand')) {
            $sbmJobCommand = $this->getOption('sbmjobCommand');
            $finalXml .= "\n<sbmjob>{$sbmJobCommand}</sbmjob>";
        }
        
        // inner "meat" of the XML
        $finalXml .= "\n$inputXml";
        
        // close script tag
        $finalXml .= "\n</script>";
        
        return $finalXml; 
    }
protected function addOuterTags ( $ inputXml ) { // start xml with encoding tag
 $ finalXml = $ this -> xmlStart ( ) ; // open script tag
 $ finalXml .= "\n<script>" ; // include override of submit command if specified
 if ( $ this -> getOption ( 'sbmjobCommand' ) ) { $ sbmJobCommand = $ this -> getOption ( 'sbmjobCommand' ) ; $ finalXml .= "\n<sbmjob>{$sbmJobCommand}</sbmjob>" ; } // inner "meat" of the XML
 $ finalXml .= "\n$inputXml" ; // close script tag
 $ finalXml .= "\n</script>" ; return $ finalXml ; }
For consistently, add commonly used starting and ending tags to input XML

@todo: $xml should be a property of the class (true OO style), then $this->addOuterTags();

@param $inputXml
@return string
For consistently add commonly used starting and ending tags to input XML