There are training rules in the DMG, but they're pretty anemic.
It seems to me that the best way to implement an XP-for-gold system would be to calculate XP-by-encounter normally, but then simply put that much treasure into various hoards etc. instead of awarding the XP for combat. Then award 1...