开发者

Invalid XML file?

开发者 https://www.devze.com 2023-03-18 03:38 出处:网络
I\'m no good with XML files but I need to make a test using one and it looks like it\'s written incorrectly:

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.


Replace [reconnect_after = 0] with reconnect_after="0".

0

精彩评论

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

关注公众号