Ejemplo n.º 1
0
        // ----------------------------------------------------------------------------------------
        /// <!-- FixImport -->
        /// <summary>
        ///
        /// </summary>
        /// <param name="oldPath"></param>
        /// <param name="newPath"></param>
        private static void FixImport(string oldPath, string newPath)
        {
            string oldSchema = FilesIO.GetStringFromFile(oldPath, "");
            string newSchema = FixImport(oldSchema);

            newSchema = Regex.Replace(newSchema, "encoding=\"utf-16\"", "encoding=\"utf-8\"");
            FilesIO.WriteStringToFile(newPath, newSchema, false);
        }
Ejemplo n.º 2
0
 public static XmlSchemaSet SchemaSet(string tempFilePath, string simpleSchema)
 {
     FilesIO.WriteStringToFile(tempFilePath, simpleSchema, false);  return(SchemaSet(tempFilePath));
 }