Canguro.Commands.Model.ExportS2kCmd.Export C# (CSharp) Method

Export() private static method

xml file to convert
private static Export ( string srcFileName, string dstFileName ) : void
srcFileName string
dstFileName string
return void
        private static void Export(string srcFileName, string dstFileName)
        {
            // Output file
            TextWriter s2kDoc = new StreamWriter(dstFileName, false, Encoding.UTF8);

            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(srcFileName);

            //Get all nodes in xml file
            XmlNodeList nodes = xmlDoc.SelectSingleNode("XmlExportedFile").ChildNodes;
            foreach (XmlNode node in nodes)
                translateXML(node, s2kDoc);

            s2kDoc.WriteLine("END TABLE DATA");

            s2kDoc.Close();
        }