Need help converting an old project

Mar 25 at 1:36 AM
Edited Mar 25 at 1:40 AM
I am resurrecting an old Irony project from 2011ish. Has this code to get the grammar AST as XML
            LanguageCompiler gaqlCompiler = new LanguageCompiler(new GaqlGrammar());
            CompilerContext compilerContext = new CompilerContext(gaqlCompiler);
            AstNode rootNode = gaqlCompiler.Parse(compilerContext, source);
            XmlDocument xdoc = rootNode.XmlToDocument();
I need to convert these four lines to the new semantics. Can anyone help?
Mar 26 at 5:17 PM
I found parseTree.ToXmlDocument() and that gives me something that I can work with.