'& lt;',十六进制值0x3C,是无效的属性字符。 [英] '<', hexadecimal value 0x3C, is an invalid attribute character.

查看:191
本文介绍了'& lt;',十六进制值0x3C,是无效的属性字符。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我收到以下错误

'<',十六进制值0x3C ,是一个无效的属性字符。 





我的xml文件如下。

< COLUMN INDEX = 40NAME =会话配置成功率(< 95%)TYPE =INTEGERPROPERTYNAME =Scsr95Per>< / COLUMN> 



I不想删除<从xml签名。如果我删除,它适用于我。

请给我其他选项。



我收到错误给定的行。

如何解决?

请指导我。



谢谢

Harshal

解决方案

尝试

 < ;      index  < span class =code-keyword> =  40   名称  = 会话配置成功率(& lt; 95%)    type   =  INTEGER    prop ertyname   =  Scsr95Per >  <   / column  >  


而不是检查每个可能的组合,使用特殊方法将字符串编码为html(如.Net中的System.Web.HttpUtility.HtmlEncode()) 。



搜索并更改它找到的任何特殊代码到HTML等价物。



System.Web.HttpUtility .HtmlEncode(x< 80)=x< 80\"

Hello Everyone,

I am getting the below error

'<', hexadecimal value 0x3C, is an invalid attribute character. 



I have the xml File as follows.

<COLUMN INDEX="40" NAME="Session Configuration Success Rate (< 95%)"  TYPE="INTEGER" PROPERTYNAME="Scsr95Per"></COLUMN>


I dont want to remove the < sign from the xml.If i remove , it works for me .
Please give me other option.

I am getting the error in the given line.
How to solve it ?
Please guide me.

Thanks
Harshal

解决方案

Try

<column index="40" name="Session Configuration Success Rate (&lt; 95%)" type="INTEGER" propertyname="Scsr95Per"></column>


instead of checking for every possible combination, use special methods to encode string to html (like System.Web.HttpUtility.HtmlEncode() in .Net).

Search and change any special code it finds to HTML equiv.

System.Web.HttpUtility.HtmlEncode("x < 80") = "x < 80"


这篇关于'&amp; lt;',十六进制值0x3C,是无效的属性字符。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆