More generally, if you're creating anything involving security, avoid XML like the plague because mixing the control and data planes, which in turn contain executable content/instructions and data, together in a random jumble is the gift to hackers that just keeps on giving.