XDocument ftpXML = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement("Device", new XElement("Name", stringArray[1]), new XElement("IP", stringArray[2]))); xml += ftpXML.ToString();
<deviceproperties> <device> <name>asda</name> <ip>192.168.1.1</ip> </device> </deviceproperties> <deviceproperties> <device> <name>asda2</name> <ip>192.168.1.21</ip> </device> </deviceproperties>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)