Archive for May, 2012

How to add double quotes to a string

I needed to save an XML formatted file as a string which required double quotes around the attributes. The below code shows how to add double quotes to a string. string data      = “<customer name=\”Ben Perkins\” class=\”Customer\”>        <property name=\”Id\” /><property name=\”Address\” />        <property name=\”Occupation\” />        <property name=\”Remark\” /></ customer >”; Notice […]

Read More →