# File lib/opml.rb, line 50
  def initialize(xml)
    @doc = REXML::Document.new(xml)

    parse_head_elements :title, :owner_name, :owner_email
    parse_head_elements :date_created, :date_modified, :with => Proc.new { |e| Time.parse(e) }

    @outlines = document_body ? initialize_outlines_from_document_body : []
  end