I may be being thick but the error that you are getting states that the XML is not well formed. Put a try..catch block to eliminate the badly formed XML. The well formed XML will not generate the error.
SQL DBA
Every day is a school day, and don't trust anyone who tells you any different.
http://sqlblogness.blogspot.co.uk