mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 23:05:12 +00:00
Correctness fix to include XML declaration
This commit is contained in:
@@ -21,6 +21,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write the files, if they exist
|
||||
WriteFiles(obj, writer);
|
||||
writer.Flush();
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write the Mame, if it exists
|
||||
WriteMame(obj, writer);
|
||||
writer.Flush();
|
||||
|
||||
@@ -55,6 +55,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write document type
|
||||
writer.WriteDocType(DocTypeName, DocTypePubId, DocTypeSysId, DocTypeSubset);
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write the M1, if it exists
|
||||
WriteM1(obj, writer);
|
||||
writer.Flush();
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write the Mess, if it exists
|
||||
WriteMess(obj, writer);
|
||||
writer.Flush();
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write the Dat, if it exists
|
||||
WriteDat(obj, writer);
|
||||
writer.Flush();
|
||||
|
||||
@@ -45,6 +45,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write document type
|
||||
writer.WriteDocType(DocTypeName, DocTypePubId, DocTypeSysId, DocTypeSubset);
|
||||
|
||||
|
||||
@@ -45,6 +45,9 @@ namespace SabreTools.Serialization.Writers
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
// Write document type
|
||||
writer.WriteDocType(DocTypeName, DocTypePubId, DocTypeSysId, DocTypeSubset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user