_docker/lib/export/drupal_page_url_list_generator.rb
#
# Parses the contents of the sitemap into a list of links
#
Parses the contents of the sitemap into a list of links
Parses the contents of the sitemap into a list of links
def parse_sitemap(sitemap_contents)
    document = Nokogiri::XML(sitemap_contents)
    links = []
    document.css('url loc').each do | link |
      uri = URI.parse(link.content)
      links << "http://#{@drupal_host}#{uri.path}"
    end
    links.uniq!
    links
  end
def parse_sitemap ( sitemap_contents ) document = Nokogiri :: XML ( sitemap_contents ) links = [ ] document . css ( 'url loc' ) . each do | link | uri = URI . parse ( link . content ) links << "http://#{@drupal_host}#{uri.path}" end links . uniq! links end
Parses the contents of the sitemap into a list of links
Parses the contents of the sitemap into a list of links
sitemap_contents
<not_specific>