def get_output(pType)
      pType.downcase!

      return XMLOutputFormat.new if pType == 'xml'
      raise Error::ParserError if pType == 'yml'
    end
def get_output(pType)
      pType.downcase!

      return XMLOutputFormat.new if pType == 'xml'
      raise Error::ParserError if pType == 'yml'
    end
Handling the output tyoe.
 @param pType [String] Type of object
 @return Return an object of output.