Streaming XML codec for OCaml