I have a path starting with the common C:\Users...\myXmlFile.xml and I am trying to load it with the
XElement.Load(@"C:\Users\...\myXmlFile.xml")
but it doesn load it and it says:
Data at the root level is invalid. Line 1, position 1.
I found out what's the reason and I can not solve it.The thing is that in some of the folders that I have in the path there is a folder with spaces and dashes between the words. Example C:\users\my - folder - doesnt - work\otherFolder\myXmlFile.xml
it works when I remove the spaces.