Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@ let () =

Printexc.record_backtrace true;

try let lst, _ = W3C.parse (Xmlm.make_input (`Channel stdin)) in
List.iter
(fun (_, err) -> Printf.printf "E: %s\n%!" err)
(List.map Syndic.W3C.to_error lst)
try let rss2 =
Syndic.Rss2.relax
Rss2.Relax.({ channel with
description = ignore;
cloud = { cloud with
registerProcedure = ignore;
protocol = ignore;
domain = ignore;
port = ignore;
path = ignore;
uri =
(fun ~pos _ _ _ -> (None : Uri.t option)) } })
(Xmlm.make_input (`Channel stdin)) in
()
with
| W3C.Error.Error ((l, c), err) ->
| Rss2.Error.Error ((l, c), err) ->
Printf.printf "[%d;%d]: %s\n%!"
l c err
| _ -> Printexc.print_backtrace stderr
Loading