A critique of XML usage, and annotating documents rather than exchanging data: https://www.devever.net/~hl/xml
It's rare to see discussions of good XML usage! I've seen marked-up word definitions (a multilingual dictionary) that were a nice fit for XML, but it's rare.
Thinking more about the "auto eval definitions" approach, I think it breaks down when debugging. If I want to step through the existing definition, it'd be really awkward to re-evaluate the definition at my cursor.