Use REXML to generate exploit file