Convert parse_xml.cpp to Fortran to ease compiling with PGI compilers.
Previously linking would fail because a special compiler switch is required when linking a CPP code with a Fortran library using PGI. To avoid having to handle that special case, switch to Fortran.