XenServer stores the vital information related to objects such as VM, VIF, VDI, PBD in an XML format file under /var/xapi/state.db. This file is synced between pool members at regular intervals to maintain a consistent view of the XenServer pool.
We recommend that you back up this XAPI database file. This article describes how to do that and how to view the file in a formatted way
# xe pool-dump-database file-name=dump.xml
# xmllint --format dump.xml | less