.plist returns: Invalid property list, plutil says ok! I'm trying to create my first .plist. I want to mount a ssh drive on login so i don't have to enter the command each time I start my Mac!

The command is: sshfs -o allow_other,defer_permissions user@xxx.xxx.xxx.xxx:/home/user/ /Users/user/Desktop/Website/ -o reconnect

The plist looks like this:

    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$
&lt;plist version="1.0"&gt;
&lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;name.plist&lt;/string&gt;
        &lt;key&gt;ProgramArguments&lt;/key&gt;
        &lt;array&gt;
                &lt;string&gt;/usr/local/bin/sshfs&lt;/string&gt;
                &lt;string&gt;-o allow_other,defer_permissions&lt;/string&gt;
                &lt;string&gt;user@xxx.xxx.xxx.xxx:/home/user&lt;/string&gt;
                &lt;string&gt;/mnt/User&lt;/string&gt;
                &lt;string&gt;-o reconnect,volname=User&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;RunAtLoad&lt;/key&gt;
        &lt;true/&gt;
&lt;/dict&gt;
&lt;/plist&gt;


I've followed a tutorial saying when done with the .plist I have to run these 2 commands:

launchctl load ~/path/name.plist
launchctl start ~/path/.name.plist


It then returns Invalid property list

I saw Launchctl says plist is invalid, plutil says it's OK, where it says i should replace the first few lines but no change? 
plutil return ok when run so I'm lost!

P.S.

I've used the template below posted by user3439894. This time it loads properly but when I start it nothing happens

When I look at the systemlog there is nothing posted about it....

About the path to sshfs i've tried 2 things:


I've left it as it stood in the example given below. 
I've done a suggested and added the path again /usr/local/bin/sshfs
Because it would be more difficult to post this in a comment I'm posting it as an answer, although it may not be the right one.

I took your command line while using Lingon X to create the .plist file, here is how it parsed the command line, which is different from yours.



&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;name&lt;/string&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;sshfs&lt;/string&gt;
        &lt;string&gt;-o&lt;/string&gt;
        &lt;string&gt;allow_other,defer_permissions&lt;/string&gt;
        &lt;string&gt;user@xxx.xxx.xxx.xxx:/home/user/&lt;/string&gt;
        &lt;string&gt;/Users/user/Desktop/Website/&lt;/string&gt;
        &lt;string&gt;-o&lt;/string&gt;
        &lt;string&gt;reconnect&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;RunAtLoad&lt;/key&gt;
    &lt;true/&gt;
&lt;/dict&gt;
&lt;/plist&gt;




You'll note that while I used the command line you have in your question it didn't include the path to sshfs, you might have to add that back. The other thing it did different is each string in the array holds the information up to but not including the spaces between the arguments.  Maybe this makes a difference.  Can't say since I can't test your command line however it's worth a try using the format Lingon X created.