Minimal XML parser and printer for OCaml