Fixed the issue.

When the exception was thrown, the first thing i did was to open the XML file in a text editor like Notepad++ and went to the line number which it said which was causing the error. The next thing i did was to copy and paste the exception in Google and found the cause of the problem. I first fixed the issue by removing '&'. Later on  i changed it to & amp ; so that it parses the XML properly to interpret &amp; as &.

Please let me know whether this is the solution that you are looking for.

Thank you for your time.