creates the DefinedNames object
 Serialize to xml
 @param [String] str
 @return [String]
351822
def to_xml_string(str = '')
      return if empty?
      str << '<definedNames>'
      each { |defined_name| defined_name.to_xml_string(str) }
      str << '</definedNames>'
    end
153854
def to_xml_string(str = '')
      validate_attributes_for_chart_type
      str << '<c:dLbls>'
      %w(d_lbl_pos show_legend_key show_val show_cat_name show_ser_name show_percent show_bubble_size show_leader_lines).each do |key|
        next unless instance_values.keys.include?(key) && instance_values[key] != nil
        str <<  "<c:#{Axlsx::camel(key, false)} val='#{instance_values[key]}' />" 
      end
      str << '</c:dLbls>'
    end
179930
def to_xml_string(str = "")
      author = @comments.authors[author_index]
      str << ('<comment ref="' << ref << '" authorId="' << author_index.to_s << '">')
      str << '<text>'
      unless author.to_s == ""
        str << '<r><rPr><b/><color indexed="81"/></rPr>'
        str << ("<t>" << ::CGI.escapeHTML(author.to_s) << ":\n</t></r>")
      end
      str << '<r>'
      str << '<rPr><color indexed="81"/></rPr>'
      str << ('<t>' << ::CGI.escapeHTML(text) << '</t></r></text>')
      str << '</comment>'
    end
807487
def to_xml_string(str = '')
      str << '<gradientFill '
      serialized_attributes str
      str << '>'
      @stop.each { |s| s.to_xml_string(str) }
      str << '</gradientFill>'
    end
1041821
def to_xml_string(str = '')
      str << '<c:scaling>'
      str << ('<c:logBase val="' << @logBase.to_s << '"/>') unless @logBase.nil?
      str << ('<c:orientation val="' << @orientation.to_s << '"/>') unless @orientation.nil?
      str << ('<c:min val="' << @min.to_s << '"/>') unless @min.nil?
      str << ('<c:max val="' << @max.to_s << '"/>') unless @max.nil?
      str << '</c:scaling>'
    end
1009516
def serialize_attributes
    attr_hash = {}
    @attributes.each_pair do |name,value|
      attr_hash[name] = serialize_attribute(name,value)
    end
    attr_hash[:id] = serialize_id unless new?
    attr_hash
  end
657748
def xml_namespace(node, name, uri, namespaces = {})
      XML::Namespace.new(node, name, uri)
    end
1241883
private static QName convertString(String str) {
        if (str != null) {
            return QName.valueOf(str);
        } else {
            return null;
        }
    }
540293
def to_xml(data)
      ox = XML::Node.new(ox_tag)
      wrappers = {}
      
      ox_elems.each do |elem|
        if elem.in
          wrappers[elem.in] ||= XML::Node.new elem.in
          elem.to_xml(data).each {|e| wrappers[elem.in] << e}
        else
          elem.to_xml(data).each {|e| ox << e}
        end
      end
      
      wrappers.each {|k,v| ox << v}
      
      ox_attrs.each do |a| 
        val = data.send(a.accessor).to_s
        ox[a.tag]= val if val.present?
      end
      
      ox
    end
550167
def to_xml_string(str = '')
      str << "<filters #{serialized_attributes}>"
      filter_items.each {  |filter| filter.to_xml_string(str) }
      date_group_items.each { |date_group_item| date_group_item.to_xml_string(str) }
      str << '</filters>'
    end
452747
def to_sheet_node_xml_string(str='')
      add_autofilter_defined_name_to_workbook
      str << '<sheet '
      serialized_attributes str
      str << ('name="' << name << '" ')
      str << ('r:id="' << rId << '"></sheet>')
    end
884129
def to_xml_string(str = '')
      str << '<tableStyle '
      serialized_attributes str, {:count => self.size}
      str << '>'
      each { |table_style_el| table_style_el.to_xml_string(str) }
      str << '</tableStyle>'
    end
588398
def to_xml_string(str = '')
      str << '<dxf>'
      # Dxf elements have no attributes. All of the instance variables
      # are child elements.
      CHILD_ELEMENTS.each do |element|
        self.send(element).to_xml_string(str) if self.send(element)
      end
      str << '</dxf>'
    end
47545
def to_xml_string(str = '')
      str << '<sheetViews>'
      str << '<sheetView '
      serialized_attributes str
      str << '>'
      @pane.to_xml_string(str) if @pane
      @selections.each do |key, selection|
        selection.to_xml_string(str)
      end
      str << '</sheetView>'
      str << '</sheetViews>'
    end
167740
def to_xml_string(str='')
      return if empty?
      str << ('<rowBreaks count="' << self.size.to_s << '" manualBreakCount="' << self.size.to_s << '">')
      each { |brk| brk.to_xml_string(str) }
      str << '</rowBreaks>'
    end
648608
def to_xml_string(str='')
      return unless range
      str << "<autoFilter ref='#{range}'>"
      columns.each { |filter_column| filter_column.to_xml_string(str) }
      str << "</autoFilter>"
    end
1127745
def to_xml_string(str = "")
      str << ('<c:' << @tag_name.to_s << '>')
      str << ('<c:ptCount val="' << @pt.size.to_s << '"/>')
      @pt.each_with_index do |value, index|
        value.to_xml_string index, str
      end
      str << ('</c:' << @tag_name.to_s << '>')
    end