开发者

Is <92FB64J> an invalid XMLtag?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜