32 writes to OmitXmlDeclaration
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
69OmitXmlDeclaration = true,
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
69OmitXmlDeclaration = true,
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
43 OmitXmlDeclaration = true
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
FormattingUtilities.cs (1)
41OmitXmlDeclaration = true,
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
XmlDataContractSerializerOutputFormatterTest.cs (3)
158writerSettings.OmitXmlDeclaration = false; 255OmitXmlDeclaration = false, 285formatter.WriterSettings.OmitXmlDeclaration = false;
XmlSerializerOutputFormatterTest.cs (3)
162writerSettings.OmitXmlDeclaration = false; 251OmitXmlDeclaration = false, 279formatter.WriterSettings.OmitXmlDeclaration = false;
Microsoft.Build (1)
Construction\Solution\SolutionProjectGenerator.cs (1)
263OmitXmlDeclaration = true
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
627OmitXmlDeclaration = true,
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\AssertXml.cs (1)
72OmitXmlDeclaration = true,
Microsoft.DotNet.XliffTasks (1)
Model\XDocumentExtensions.cs (1)
21OmitXmlDeclaration = writer is StringWriter,
ReachFramework (1)
PrintConfig\PrintCapabilitesWriter.cs (1)
32settings.OmitXmlDeclaration = false;
System.Data.Common (1)
System\Data\SQLTypes\SqlXml.cs (1)
183writerSettings.OmitXmlDeclaration = true;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
345writerSettings.OmitXmlDeclaration = true;
System.Private.Xml (8)
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
195settings.OmitXmlDeclaration = _omitXmlDeclaration;
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
142settings.OmitXmlDeclaration = _omitXmlDeclaration;
System\Xml\Core\XmlWriterSettings.cs (1)
656OmitXmlDeclaration = reader.ReadBoolean();
System\Xml\Serialization\XmlSchemas.cs (1)
577settings.OmitXmlDeclaration = true;
System\Xml\XPath\XPathNavigator.cs (2)
1348writerSettings.OmitXmlDeclaration = true; 1387writerSettings.OmitXmlDeclaration = true;
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
254settings.OmitXmlDeclaration = true;
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
731settings.OmitXmlDeclaration = omitXmlDeclaration;
System.Private.Xml.Linq (2)
System\Xml\Linq\XNode.cs (1)
697ws.OmitXmlDeclaration = true;
System\Xml\Linq\XStreamingElement.cs (1)
231ws.OmitXmlDeclaration = true;
System.Xaml (5)
System\Xaml\XamlObjectReader.cs (1)
595OmitXmlDeclaration = true,
System\Xaml\XamlServices.cs (4)
131using (var xw = XmlWriter.Create(sw, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 148using (var writer = XmlWriter.Create(fileName, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 158using (var writer = XmlWriter.Create(stream, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 168using (var xmlWriter = XmlWriter.Create(writer, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true }))
6 references to OmitXmlDeclaration
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
146Assert.True(writerSettings.OmitXmlDeclaration);
XmlSerializerOutputFormatterTest.cs (1)
152Assert.True(writerSettings.OmitXmlDeclaration);
System.Private.Xml (4)
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
96_omitXmlDeclaration = settings.OmitXmlDeclaration;
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
81_omitXmlDeclaration = settings.OmitXmlDeclaration;
System\Xml\Core\XmlWriterSettings.cs (1)
606writer.Write(OmitXmlDeclaration);
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
727if (currentPrec == output.OmitXmlDeclarationPrec && settings.OmitXmlDeclaration != omitXmlDeclaration)