开发者

angle bracket in xml value

How can I put an angle bracket ("<") in my xml attribute?

I'm trying to sto开发者_JS百科re an SQL query, but this seems to be illegal.

<add key="query" value="SELECT DISTINCT index FROM table WHERE langCode <> 'FR'"/>


Use &lt; and &gt; instead of < and >:

<add key="query" value="SELECT DISTINCT index FROM table WHERE langCode &lt;&gt; 'FR'"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜