コード例 #1
0
        public static void Upgrade(Stream inStream, Stream outStream, bool throwUpgradeException)
        {
            XmlTextReader xmlTextReader = new XmlTextReader(inStream);

            xmlTextReader.ProhibitDtd = true;
            Upgrader.Upgrade(xmlTextReader, outStream, throwUpgradeException);
        }
コード例 #2
0
 public static void Upgrade(string inputFile, string outputFile, bool throwUpgradeException)
 {
     using (FileStream inStream = File.OpenRead(inputFile))
     {
         using (FileStream outStream = File.Open(outputFile, FileMode.Create, FileAccess.ReadWrite))
         {
             Upgrader.Upgrade(inStream, outStream, throwUpgradeException);
         }
     }
 }