<div dir="ltr"><div><div><div>Thank you Adam - I have now added the <body> tag to both functions: [pageWithLogout()] and [logout()], fixing the mal-formed xml.<br><br> </div>The compiler error message now is much shorter - complaining about "error in final record unification" in functions further down the page (which I hadn't modified).<br><br>This is making me think I still may have some kind of syntax error impacting the remainder of the file? Or possibly one of the types is wrong?<br><br></div>Source code and compiler output on GitHub here:<br><br><a href="https://github.com/DonaldScott/urtutorial/commit/1a0b67126894b1a1b333a1d4be5d0ae04a3d5b81">https://github.com/DonaldScott/urtutorial/commit/1a0b67126894b1a1b333a1d4be5d0ae04a3d5b81</a><br><br></div>The earlier version of this (by Gian Perrone - <a href="https://github.com/gian/urtutorial">https://github.com/gian/urtutorial</a>) had working fine - it only got broken when I added the functions [logout()] and [pageWithLogout()] - and replaced [page] at the end of [ifAuthenticated] with a call to [pageWithLogout page].<br><br><br></div>