#directory "+xmlm" #load "xmlm.cmo" open Xmlm let str = " " let xi = make_input(`String(0, str)) let () = while not(eoi xi) do match Xmlm.input xi with | `El_start ((_, "Student"), attrs) -> List.iter (function ((_, "Name"), name) -> print_endline name | _ -> ()) attrs | _ -> () done