void outputXmL(string name, string comment) { ChyronData cd = new ChyronData(); cd.PageType = "facebook_template_1"; cd.TemplatePageNumber = "201"; cd.BuildPageNumber = "1001"; cd.Name = name; cd.Comment = comment; System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(cd.GetType()); System.IO.StreamWriter sw = new System.IO.StreamWriter(@"\\10.176.4.104\ProjectParking\Election2016XML\ConstituencyXML\feedback.xml"); x.Serialize(sw, cd); sw.Close(); }
void outputXmL(string name, string comment) { ChyronData cd = new ChyronData(); cd.PageType = "facebook_template_1"; cd.TemplatePageNumber = "201"; cd.BuildPageNumber = "1001"; cd.Name = name; cd.Comment = comment; System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(cd.GetType()); x.Serialize(new System.IO.StreamWriter(@"c:\Scripts\text.xml"), cd); }