I know in the Bitcoin Core wallet there is no easy way to extract the xpub from a wallet, but maybe with the latest changes that have been made to the core (such as the exit descriptors), there are some new commands or ways that allow me to have the xpub from a wallet.
In Electrum Wallet or other wallets, that information can be taken easily, and I know that if I import my seed in these wallets I can get the xpub, but I would like to know if it is possible to do it from the Bitcoin Core wallet or not?