replacements up front and DRY
Merge pull request #3 from jsrn/replacements-up-front

Perform XML replacements up front.