XML quotes within quotes
<add key="TAB_Home" value="//*[@id="kmTabContainer_HomeTab"]"/>
<add key="开发者_如何学PythonTAB_Home" value='//*[@id="kmTabContainer_HomeTab"]'/>
The above is the code from my appConfig file. How to format quotes inside quotes in XML? When I do the first one, it says Missing Required White Space.
The second one gives me expected '>'
Use '
to represent a single quote in an attribute value delimited by single quotes.
Use "
to represent a double quote in an attribute value delimited by double quotes.
You encode them using "
:
<add key="TAB_Home" value="//*[@id="kmTabContainer_HomeTab"]"/>
精彩评论