From c1ebab9485256e5fbf4f47d20be8627fd03c68a1 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Tue, 24 Mar 2020 13:49:28 -0400 Subject: Add XmlWriter overload. - Also fix some typos. --- .../WindowsInstaller/WindowsInstallerData.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs') diff --git a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs index 43c19d69..e30be598 100644 --- a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs +++ b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs @@ -85,12 +85,21 @@ namespace WixToolset.Data.WindowsInstaller { using (var writer = XmlWriter.Create(wixout.CreateDataStream(WixOutputStreamName))) { - writer.WriteStartDocument(); - this.Write(writer); - writer.WriteEndDocument(); + this.Save(writer); } } + /// + /// Saves an output to an XmlWriter. + /// + /// XmlWriter to save to. + public void Save(XmlWriter writer) + { + writer.WriteStartDocument(); + this.Write(writer); + writer.WriteEndDocument(); + } + /// /// Gets table by name. /// -- cgit v1.2.3-55-g6feb