error storing < and > characters in app.config file in C#

dnyan86 picture dnyan86 · Aug 27, 2012 · Viewed 11.1k times · Source

I want to store a sql query in app.config file which has < and > characters but file shows error 'expecting >' , have you come across this problem ?

Answer

aquinas picture aquinas · Aug 27, 2012

Just change the < and > to &lt; and &gt;.