Parsing large XML files leads to ** (ArgumentError) argument error
Opened this issue · 0 comments
BartOtten commented
url = "http://ftp1.nluug.nl/mediaplayer/xbmc/addons/krypton/addons.xml"
case HTTPoison.get(url,[], [connect_timeout: 1000000, recv_timeout: 1000000, timeout: 1000000]) do
{:ok, %HTTPoison.Response{status_code: 200, body: body, headers: headers}} -> addons = body |> XmlParser.parse_string
end
def parse_string (xml) do
Friendly.find(xml, "addon")
end
** (ArgumentError) argument error
(friendly) lib/friendly.ex:38: Friendly.fetch_children/1
(friendly) lib/friendly.ex:13: Friendly.to_element/1
(elixir) lib/enum.ex:1184: Enum."-map/2-lists^map/1-0-"/2
(friendly) lib/friendly.ex:13: Friendly.to_element/1
(elixir) lib/enum.ex:1184: Enum."-map/2-lists^map/1-0-"/2
(friendly) lib/friendly.ex:13: Friendly.to_element/1
(elixir) lib/enum.ex:1184: Enum."-map/2-lists^map/1-0-"/2
(elixir) lib/enum.ex:1184: Enum."-map/2-lists^map/1-0-"/2
(buildbot) lib/buildbot.ex:36: BuildBot.proces_single_source/1
(elixir) lib/enum.ex:651: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:651: Enum.each/2