convert ghdl xml output to javascript