I am trying to output the following line to an xml file.
I am using the below command:
echo "<?xml version="1.0" encoding="utf-8"?>" >> MyFile.xml
The only issue is that it is including the quotation marks at the begining and end in the file so inside of my file it looks like this:
"<?xml version="1.0" encoding="utf-8"?>"
Instead of this:
<?xml version="1.0" encoding="utf-8"?>
But if I try to run the batch file without the first and last quotes it fails and says >> was unexpected at this time.
So... those quotation marks are needed for it to work but it then prints those marks... Is there any way to do this?