# File lib/cgikit/parser.rb, line 601
    def xmldecl(version, encoding, standalone)
      s = '<?xml '

      if version
        s << %Q|version="#{version}"|
      end
      
      if encoding
        if @encoding and @encoding != encoding
          raise ParseError, "#{@filename}: charcter encoding does not match that of root component.\nRoot component is #{@encoding}.\n#{@filename} is #{encoding}\n"
        end
        @encoding = encoding
        s  << %Q| encoding="#{encoding}"|
      end
      
      if standalone
        s << %Q| standalone="#{standalone}"|
      end
      
      s <<  %Q|?>|
      @buf << s
    end