    # File daybook/mycgi/daybook/owner/d_remake.rb, line 23
    def rss2
      list_channel = {
        "title"=>"midore_daybook",
        "link"=>"http://www.midore.net/daybook/daybook_index.html",
        "description"=>"ruby, xml, xsl",
        "language"=>"ja",
        "copyright"=>"Copyright 2006, Midore"
          }
       list_item = { 'pubDate'=>"/entry/meta/metadate/full",'title'=> "entry/item/subject",
                'link'=> "entry/meta/uri",'description'=>"entry/item/comment/p",'guid'=>"entry/meta/uri"}

      list_targetxml = m_common_count_xmlfiles(@path_log_xml)
      require "time"
      doc = m_make_new_xml("rss");docroot = doc.root
      docroot.add_attribute("version", value="2.0");docroot.add_text("\n")
      channel = docroot.add_element("channel")

      list_channel.each{|key, value|
        ele_key = channel.add_element(key)
        ele_key.add_text(value)
        }
        list_targetxml.each{|f|
          onefiledoc = Document.new(File.new( f ))
          channel.add_text("\n")
          item = channel.add_element("item")
          item.add_text("\n")
          list_item.each{|key, value|
             ele_key = item.add_element(key)
             case key
             when 'guid'
               ele_key.add_attribute(REXML::Attribute.new("isPermaLink", "true"))
               ele_key.add_text(onefiledoc.elements["#{value}"].text)
             when 'pubDate'
               u_rfctime = Time.parse(onefiledoc.elements["#{value}"].text).rfc822
               ele_key.add_text("#{u_rfctime}")
             when 'title'
               s_title = onefiledoc.elements["#{value}"].text
               us_title = s_title.gsub(/&#\d.*;/, " ")
               ele_key.add_text(us_title)
             else
                 ele_key.add_text(onefiledoc.elements["#{value}"].text)
             end
             item.add_text("\n")
             }
          }

        channel.add_text("\n")
        # save xml
        path_trash_rss = File.join(@path_trash, "rss.xml")
        p_remakesave( @path_rss, path_trash_rss, doc.to_s )

        return "RSS Success"
    end