I have this substring I want to strip out of a string:
<ArrayOfSiteQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/CStore.DomainModels.HHS">
Realizing it was full of funkiness, I thought verbatimizing it would solve all ills:
String messedUpJunk = @"<ArrayOfSiteQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/CStore.DomainModels.HHS">";
...but, to paraphrase the robot on Lost In Space, that does not compute (compile); I get, "; expected" on the first "http".
I can get it compilable by escaping the quotes:
String messedUpJunk = "<ArrayOfSiteQuery xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.datacontract.org/2004/07/CStore.DomainModels.HHS\">";
...but what use is verbatim if it's not verbatimatic?