I'm guessing this is because you need to add a step in ModelBuilder to connect to the geodatabase first before you will able to export the XML.
As indicated here: https://community.esri.com/t5/data-management-questions/import-export-xml-workspace-document-disabled/m-p/742475
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.