Generate license in xml format
Write result to file