Beispiel #1
0
        public void DeserializeDEFromPath()
        {
            string path = "C:\\Users\\rmoldwi\\OneDrive\\One Drive Documents\\SDC\\SDC Git Repo\\sdc-schema-package\\DE sample.xml";
            //string sdcFile = File.ReadAllText(path, System.Text.Encoding.UTF8);
            DataElementType DE    = DataElementType.DeserializeFromXmlPath(path);
            var             myXML = DE.GetXml();

            Debug.Print(myXML);
        }
Beispiel #2
0
        public void DeserializeDEFromPath()
        {
            BaseType.ClearTopNode();
            //string path = @".\Test files\DE sample.xml";
            string path = Path.Combine(".", "Test files", "DE sample.xml");
            //string sdcFile = File.ReadAllText(path, System.Text.Encoding.UTF8);
            DataElementType DE    = DataElementType.DeserializeFromXmlPath(path);
            var             myXML = DE.GetXml();

            Debug.Print(myXML);
            Debug.Print(DE.GetJson());
        }