added xml parsing function which generates c++ code. function is not called anywhere yet but it is defined.