e-xml: Add C api

Makes it easier to use with C projects (especially those that don't allow C++ code)
Good point, a separate patch with that for parse.cpp would be good.