serialize the object
 @param [String] str
 @return [String]
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
185665
def to_xml_string(str = '')
      str << '<sheetData>'
      worksheet.rows.each_with_index do |row, index| 
        row.to_xml_string(index, str) 
      end
      str << '</sheetData>'
    end
403075
function serialize( arr ) {
	var len = arr.length,
		n = len - 1,
		str,
		i;

	str = '[';
	for ( i = 0; i < len; i++ ) {
		str += arr[ i ];
		if ( i < n ) {
			str += ',';
		}
	}
	str += ']';

	return 'new '+arr.constructor.name+'('+str+')';
}
917280
def to_xml_string(str='')
      return if empty?
      str << '<hyperlinks>'
      each { |hyperlink| hyperlink.to_xml_string(str) }
      str << '</hyperlinks>'
    end
811179
def to_xml_string(str = '')
      str << '<?xml version="1.0" encoding="UTF-8"?>'
      str << ('<table xmlns="' << XML_NS << '" id="' << (index+1).to_s << '" name="' << @name << '" displayName="' << @name.gsub(/\s/,'_') << '" ')
      str << ('ref="' << @ref << '" totalsRowShown="0">')
      str << ('<autoFilter ref="' << @ref << '"/>')
      str << ('<tableColumns count="' << header_cells.length.to_s << '">')
      header_cells.each_with_index do |cell,index|
        str << ('<tableColumn id ="' << (index+1).to_s << '" name="' << cell.value << '"/>')
      end
      str << '</tableColumns>'
      table_style_info.to_xml_string(str)
      str << '</table>'
    end
247769
def to_xml_string(str = "")
      return if empty?
      str << "<dataValidations count='#{size}'>"
      each { |item| item.to_xml_string(str) }
      str << '</dataValidations>'
    end
1218151
def to_xml_string(str = '')
      str << '<border '
      serialized_attributes str
      str << '>'
      # enforces order
      [:start, :end, :left, :right, :top, :bottom, :diagonal, :vertical, :horizontal].each do |k|
        @prs.select { |pr| pr.name == k }.each do |part|
          part.to_xml_string(str)
        end
      end
      str << '</border>'
    end
172258
def to_xml_string(str = '')
      str << '<c:ser>'
      str << ('<c:idx val="' << index.to_s << '"/>')
      str << ('<c:order val="' << (order || index).to_s << '"/>')
      title.to_xml_string(str) unless title.nil?
      yield if block_given?
      str << '</c:ser>'
    end
109453
def to_xml_string(str = '')
      str << '<tableStyles '
      serialized_attributes str, {:count => self.size }
      str << '>'
      each { |table_style| table_style.to_xml_string(str) }
      str << '</tableStyles>'
    end
1020926
def to_xml_string(str = '')
      str << '<c:catAx>'
      super(str)
      str << ('<c:auto val="' << @auto.to_s << '"/>')
      str << ('<c:lblAlgn val="' << @lbl_algn.to_s << '"/>')
      str << ('<c:lblOffset val="' << @lbl_offset.to_i.to_s << '"/>')
      str << ('<c:tickLblSkip val="' << @tick_lbl_skip.to_s << '"/>')
      str << ('<c:tickMarkSkip val="' << @tick_mark_skip.to_s << '"/>')
      str << '</c:catAx>'
    end
616208
function stringify(str) {
            if (!str) {
                return str;
            }

            var newStr = '';
            for (var i = 0, l = str.length, ch; i < l; i++) {
                ch = str.charCodeAt(i);
                if (ch === 0) {
                    continue;
                }
                newStr += String.fromCharCode(ch);
            }
            return newStr;
        }
877338
def to_xml_string(str = '')
      super(str) do
        str << ("<c:" << node_name << ">")
        str << ('<c:grouping val="' << grouping.to_s << '"/>')
        str << ('<c:varyColors val="' << vary_colors.to_s << '"/>')
        @series.each { |ser| ser.to_xml_string(str) }
        @d_lbls.to_xml_string(str) if @d_lbls
        yield if block_given?
        axes.to_xml_string(str, :ids => true)
        str << ("</c:" << node_name << ">")
        axes.to_xml_string(str)
      end
    end
1202118
def serialize(element, strip=False):
    
    text = etree.tostring(element, method='text', encoding='utf-8')
    if strip:
        text = text.strip()
    return str(text, encoding='utf-8')
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
1045305
def encode(strs):
    
    res = ''
    for string in strs.split():
        res += str(len(string)) + ":" + string
    return res
1184311
def to_xml_string(str = '')
      return if empty?
      str << '<protectedRanges>'
      each { |range| range.to_xml_string(str) }
      str << '</protectedRanges>'
    end
314589
def String(self, str):
        
        ret = libxml2mod.xmlTextReaderConstString(self._o, str)
        return ret