modify xml output for AST