Esempio n. 1
0
        public static XmlWriter New(TextWriter textWriter)
        {
            var settings = XmlWriterSettingsHelper.GetStandardSettings();

            var writer = XmlWriter.Create(textWriter, settings);

            return(writer);
        }
Esempio n. 2
0
        public static XmlWriter New(string xmlFilePath)
        {
            var settings = XmlWriterSettingsHelper.GetStandardSettings();

            var writer = XmlWriter.Create(xmlFilePath, settings);

            return(writer);
        }
Esempio n. 3
0
        /// <summary>
        /// Gets the standard XML writer.
        /// </summary>
        public static XmlWriter New(Stream stream)
        {
            var settings = XmlWriterSettingsHelper.GetStandardSettings();

            var writer = XmlWriter.Create(stream, settings);

            return(writer);
        }