Suppose I have the following string whch is part of an xml string:
String s= "Script Id="Test" "
And I need to get
s= "Script Id="Test" "
Can anyone tell me how this can acheived?
Thanks,
jmash
No problem JMash,
To insert a double quotation inside a string you need to use two double double quotation marks next to each other. So you would replace all instances of " with "". Try this:
s = s.Replace(""", """")
This little rule about quote marks applies to apostrophe's as well where they are used as string delimiters (for example in SQL) and is an important thing to be aware of.
Give this a try and let me know if it helps,
Dr B