if i were to say create a function:
public static string createProduct(string pName, decimal pPrice)
{string postData = @"<?xml version=""1.0"" encoding=""UTF-8""?
<product>
<name>?</name>
<price>?</price>
</product>";
....some other codes...}
i have tried googling it but have not found any clear answer…
and sorry i’m kinda new to xml and c#, so how do i insert pName and pPrice into xml without upsetting visual studio?
would really appreciate help from you guys…tia!
System.Xml.Linq Namespace and XElement class are good places to start to read and easier to use than System.Xml namespace