开发者

How to store "<" in an XML attribute for configuration section?>

开发者 https://www.devze.com 2022-12-10 05:38 出处:网络
I\'m using a custom configuration section in my web.config file for ASP.NET One of my fields is: &l开发者_JAVA百科t;add percent=\"5\" label=\"<5%\" />

I'm using a custom configuration section in my web.config file for ASP.NET

One of my fields is: &l开发者_JAVA百科t;add percent="5" label="<5%" />

As you can see in label I have a "<" sign - this is causing errors. How can I store this value there without having compile issue?

Thanks!


The escape sequence for this character in XML is

&lt;

The lt stands for "less than"

0

精彩评论

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