Data at the root level is invalid. Line 1, position 1.
XmlDocument SAP_SettingsXML = new XmlDocument(); SAP_SettingsXML.LoadXml(SAP_Manager.PublicVariables.clsPublicVariables.SettingsPath); XmlNode node = SAP_SettingsXML.CreateNode(XmlNodeType.Element, "OutboundPath", null); node.InnerText = txt_DirectoryPath.Text; //add to elements collection SAP_SettingsXML.DocumentElement.AppendChild(node); SAP_SettingsXML.Save(SAP_Manager.PublicVariables.clsPublicVariables.SettingsPath);
<?xml version="1.0" encoding="utf-8"?> <SAP_Manager_Settings> <Inbound_Path xmlns=" ">C:\Users\Ben\Desktop</Inbound_Path>< /SAP_Manager_Settings>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)