Why do you think you need to base64 encode stuff And what exactly fails with your approach, do you get an error message, if so which one for which statement exactly
Here is a simple .NET 2.0/C# example that takes your example file name and inserts it into an XmlDocument instance using the editable XPathNavigator API, then saves the XmlDocument to a file and reads it back to read out the example file name again using the XPathNavigator API:
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.LoadXml(
);
string filePath =
;
XPathNavigator navigator = xmlDocument.CreateNavigator();
navigator.SelectSingleNode(
).SetValue(filePath);
string xmlFile =
;
xmlDocument.Save(xmlFile);
xmlDocument.Load(xmlFile);
navigator = xmlDocument.CreateNavigator();
Console.WriteLine(navigator.SelectSingleNode(
).Value);
|