def to_xml
      return nil if title.nil? || body.nil?

      xml = ""
      xml << "<d:entry id=\"#{self.id}\" d:title=\"#{self.title}\">\n"
      @index.each do |i|
        xml << "\t<d:index d:value=\"#{i}\" d:title=\"#{title}\" "
        xml << "d:yomi=\"#{yomi}\"" if !self.yomi.nil?
        xml << "/>\n"
      end
      xml << "\t<div>\n"
      xml << "\t\t#{@body}\n"
      xml << "\t</div>\n"
      xml << "</d:entry>\n"

      return xml
    end
def to_xml
      return nil if title.nil? || body.nil?

      xml = ""
      xml << "<d:entry id=\"#{self.id}\" d:title=\"#{self.title}\">\n"
      @index.each do |i|
        xml << "\t<d:index d:value=\"#{i}\" d:title=\"#{title}\" "
        xml << "d:yomi=\"#{yomi}\"" if !self.yomi.nil?
        xml << "/>\n"
      end
      xml << "\t<div>\n"
      xml << "\t\t#{@body}\n"
      xml << "\t</div>\n"
      xml << "</d:entry>\n"

      return xml
    end
Generates xml for the Entry object.

 Returns String.