This is the same approach i am following too. In the clipboard i am able to see the correct chars. in that location when i open the characters are not the same. It looks like encoded. I want the same chars that is present in my clipboard in the location xml also where i write it.