XML 文件无效?
我不擅长使用 XML 文件,但我需要使用一个进行测试,它看起来写得不正确:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<command action="send" id="1234" [reconnect_after = 0] >
<clip id="1">PD94bWwgdmVyc2lvbj0iMS4wIiBlb</clip>
<clip id="2">kjshdf23987iewjfnb892q34qdhadhax</clip>
</command>
</root>
我用 XML 验证器进行了测试,结果如下:
Error: Can not find declaration of element 'root'.
Error Position:
<root>
Error: Element type "command" must be followed by attribute specifications: ">" or "/>".
Error Position:
<command action="resolve" id="1234" [reconnect_after = 0] >
尽管有错误描述,但我真的不知道如何纠正文件。有人可以帮助我吗?
谢谢。
I'm no good with XML files but I need to make a test using one and it looks like it's written incorrectly:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<command action="send" id="1234" [reconnect_after = 0] >
<clip id="1">PD94bWwgdmVyc2lvbj0iMS4wIiBlb</clip>
<clip id="2">kjshdf23987iewjfnb892q34qdhadhax</clip>
</command>
</root>
I tested with an XML validator and these are the results:
Error: Can not find declaration of element 'root'.
Error Position:
<root>
Error: Element type "command" must be followed by attribute specifications: ">" or "/>".
Error Position:
<command action="resolve" id="1234" [reconnect_after = 0] >
Despite the error descriptions I really have no idea how to correct the file. Can anyone help me?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
[reconnect_after = 0]
替换为reconnect_after="0"
。Replace
[reconnect_after = 0]
withreconnect_after="0"
.