added the xml output.