Adrian
Adrian

Reputation: 20068

Invalid XML file?

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.

Upvotes: 0

Views: 850

Answers (1)

Gedrox
Gedrox

Reputation: 3612

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

Upvotes: 4

Related Questions