Thanks Faraz. The issue got resolved. It was insertion of beginning of file characters in the XML which was first getting saved. I am removing those characters and now it is working. Thanks for the input.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop