Add `ifdef` to decide whether to use NIF `xml`