xml 字符简单问题

ty_work 2004-06-15 09:27:50
The name "!" is not legal for JDOM/XML elements: XML names cannot begin with the character "!".

The name "$" is not legal for JDOM/XML elements: XML names cannot begin with the character "$".

我想用这个做一个结点,但竟然不行了,用它们开头都不行什么原因呢可能?
...全文
196 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
ironfox 2004-06-15
  • 打赏
  • 举报
回复
显然不合语法阿~~~~~

转义字符阿~~~
ejbcreate 2004-06-15
  • 打赏
  • 举报
回复
xml语法的要求很严格的,建议你看一下这方面的资料。
ty_work 2004-06-15
  • 打赏
  • 举报
回复
The name "1" is not legal for JDOM/XML elements: XML names cannot begin with the character "1"
ty_work 2004-06-15
  • 打赏
  • 举报
回复
转什么义啊,我加数字进去都不行,数字也需要转义
ty_work 2004-06-15
  • 打赏
  • 举报
回复
奇怪了昨天我是直接就能写进去了,今天怎么就不行了呢
Philzzf 2004-06-15
  • 打赏
  • 举报
回复
应该需要转义

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧