Pr xml c api

Make it easier to use with C projects