Here's my code:
var ptFirstName = tboxFirstName.Text;
writer.WriteAttributeString("first",ptFirstName);
note that ptFirstName will end up in double quotes even if I use
ptFirstName = ptFirstName.Replace("\"","'");
This does not work either since the writer will still force double quotes in my file as follows:
when in fact I need (don't ask me why - it's a long story...)