Change the FrontendOutputPreGenerate delegate to use XMLElement for the XML parameter instead of a string. Closes #1615