but because the document root has changed phpmyadmin is no longer there
Not possible, because phpMyAdmin is not located in the original DocumentRoot directory. Thus, if you change your DocumentRoot, it makes no difference to phpMyAdmin.
Maybe you have changed more then the DocumentRoot in the XAMPP configuration?