To me your verification seems to be complicated and therefore fragile. I expect it to fail unless the entire XML chunk matches.
If you insist on verifying the entire code block, why not edit your data sheet so it contains the XML in the format as rendered by the browser? In other words, copy the value at time of failure from the log (with the special characters replaced by their HTML coded equivalents) and paste that into your data sheet.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items