XDocument.Save to specific directory?
- by Ignacio
Hi, I'm using this XML classes for the first time and can't find this piece of info.
I'm doing:
xmlDoc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
xmlDoc.Add(new XElement("Images"));
xmlDoc .Save("C:\\Backup\\images.xml");
But doesn't work. It only works if I use just the filename, like "images.xml", but of course, the file gets saved on the execution path.