in reply to Replacing Data within XML Element

The code you posted is incomplete, it won't run as written

Also, you're not using <c> or <code> to surround the code/data you're posting