def format
      raise FormatError.new(self) unless formattable?

      REXML::Element.new("global").tap do |global|
        global.attributes["scope"] = @scope.to_s
        @attributes.each {|attribute| global.elements << attribute.format}
      end
    end
def format
      raise FormatError.new(self) unless formattable?

      REXML::Element.new("global").tap do |global|
        global.attributes["scope"] = @scope.to_s
        @attributes.each {|attribute| global.elements << attribute.format}
      end
    end
Format as a XML element.

 @return [REXML::Element]
   XML element