add xml output to parse tree