开发者

Is <92FB64J> an invalid XMLtag?

开发者 https://www.devze.com 2023-01-31 23:46 出处:网络
System.Xml.XmlException: Name cannot start with the character \"9\", hexadecimal value 0x39 Is t开发者_JAVA百科his because tags cannot start with numbers, or does this have to do with the xml encod

System.Xml.XmlException: Name cannot start with the character "9", hexadecimal value 0x39

Is t开发者_JAVA百科his because tags cannot start with numbers, or does this have to do with the xml encoding


Yes, element names cannot start with a number.


"XML element names can not start with a number or punctuation character."

Source


They can not start with numbers (or the string "xml", for future reference).

Also, you should avoid the following characters:

. - :

In names.

0

精彩评论

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