Temporary class to enable serialization and deserialization of nodes. Will only be used untill the PackagingService in Umbraco is stable/complete.
        public void ExportXml(string nodeType, int nodeId, string projectAppDataPath)
        {
            var fileName = string.Concat(nodeType.TrimEnd('s'), "-", nodeId, ".xml");
            var dirPath  = Path.Combine(projectAppDataPath, "Serialized");
            var filePath = Path.Combine(dirPath, fileName);

            if (Directory.Exists(dirPath) == false)
            {
                Directory.CreateDirectory(dirPath);
            }

            var packaging = new Packaging(_serviceContext);

            packaging.ExportToFile(filePath, nodeType.TrimEnd('s').ToLowerInvariant(), nodeId);
        }
        public void ExportXml(string nodeType, int nodeId, string projectAppDataPath)
        {
            var fileName = string.Concat(nodeType.TrimEnd('s'), "-", nodeId, ".xml");
            var dirPath = Path.Combine(projectAppDataPath, "Serialized");
            var filePath = Path.Combine(dirPath, fileName);

            if (Directory.Exists(dirPath) == false)
                Directory.CreateDirectory(dirPath);

            var packaging = new Packaging(_serviceContext);
            packaging.ExportToFile(filePath, nodeType.TrimEnd('s').ToLowerInvariant(), nodeId);
        }