How can I escape double quotes in XML attributes values?

Viewed 150307

From the following trials

<tag attr="\"">
<tag attr="<![CDATA["]]>">
<tag attr='"'>

Only the last one works for an XML parser that I'm using here. Is there an alternative?

4 Answers
Related