Added lastContent to xml gen