Permalink
Browse files

Get the dogfood example through xmerl.

  • Loading branch information...
jlouis committed Oct 18, 2010
1 parent 476016c commit 7638115f071b2d4ccfceee9c0d1c6521872fdd97
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/atom.erl
View
@@ -17,7 +17,9 @@
get_feed(Uri) when is_record(Uri, uri) ->
get_feed(uri:to_string(Uri));
get_feed(Uri) when is_list(Uri) ->
- ibrowse:send_req(Uri, [], get).
+ %% Assume we get a result. No error handling yet
+ {ok, "200", _Headers, Body} = ibrowse:send_req(Uri, [], get),
+ xmerl_scan:string(Body).
%%--------------------------------------------------------------------
%% Function:

0 comments on commit 7638115

Please sign in to comment.