<\/script>')

Quotation XML Quotes

 <add key="TAB_Home" value="//*[@id="kmTabContainer_HomeTab"]"/>

 <add key="TAB_Home" value='//*[@id="kmTabContainer_HomeTab"]'/>

Above is the code from my appConfig file. How to format quotes inside quotes in XML? When I do the first one, he says "There is no necessary white space."

The second gives me the expected '>'

+3
source share
2 answers

Use &apos;to represent a single quote in an attribute value limited to single quotes.

Use &quot;to represent double quotes in an attribute value limited by double quotes.

+14
source

You encode them with &quot;:

<add key="TAB_Home" value="//*[@id=&quot;kmTabContainer_HomeTab&quot;]"/>
+2
source

All Articles