XML parsing with errors for OCaml