How do I generate &quot in XML from C#

I'm using XmlTextWriter to generate XML from a C# app. The initial input will be in this format, 1" , but I can replace it with whatever. I need to end up with \[code\]1"\[/code\] but I keep getting \[code\]1"\[/code\]C#\[code\] xml.WriteStartElement("data"); xml.WriteAttributeString("type", "wstring"); xml.WriteString("1""); xml.WriteEndElement();\[/code\]Ha! When I past the XML I need in here it converts it to 1". But whats I really need to show is the actual \[code\]1"\[/code\] in the 3rd line of the code. I also need to use / and ?. How can I do this, thanks.
 
Back
Top