16 types derived from XmlWriter
System.Data.Common (1)
System\Data\xmlsaver.cs (1)
3125internal sealed class DataTextWriter : XmlWriter
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\XmlSerializableWriter.cs (1)
11internal sealed class XmlSerializableWriter : XmlWriter
System\Xml\XmlDictionaryWriter.cs (1)
18public abstract class XmlDictionaryWriter : XmlWriter
System.Private.Xml (12)
System\Xml\Core\QueryOutputWriterV1.cs (1)
23internal sealed class QueryOutputWriterV1 : XmlWriter
System\Xml\Core\XmlAsyncCheckWriter.cs (1)
9internal sealed class XmlAsyncCheckWriter : XmlWriter
System\Xml\Core\XmlRawWriter.cs (1)
39internal abstract partial class XmlRawWriter : XmlWriter
System\Xml\Core\XmlRawWriterAsync.cs (1)
40internal abstract partial class XmlRawWriter : XmlWriter
System\Xml\Core\XmlTextWriter.cs (1)
34public class XmlTextWriter : XmlWriter
System\Xml\Core\XmlWellFormedWriter.cs (1)
15internal sealed partial class XmlWellFormedWriter : XmlWriter
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
19internal sealed partial class XmlWellFormedWriter : XmlWriter
System\Xml\Core\XmlWellFormedWriterHelpers.cs (1)
12internal sealed partial class XmlWellFormedWriter : XmlWriter
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
12internal sealed partial class XmlWellFormedWriter : XmlWriter
System\Xml\Core\XmlWrappingWriter.cs (1)
11internal partial class XmlWrappingWriter : XmlWriter
System\Xml\Core\XmlWrappingWriterAsync.cs (1)
13internal partial class XmlWrappingWriter : XmlWriter
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
35public sealed class XmlQueryOutput : XmlWriter
System.Private.Xml.Linq (1)
System\Xml\Linq\XNodeBuilder.cs (1)
9internal sealed class XNodeBuilder : XmlWriter
838 references to XmlWriter
Aspire.Workload.Tests (2)
WorkloadTestsBase.cs (2)
87using (var w = XmlWriter.Create(output, s_xmlWriterSettings))
dotnet-user-jwts (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
72using var xw = XmlWriter.Create(projectPath, settings);
dotnet-user-secrets (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
72using var xw = XmlWriter.Create(projectPath, settings);
Extensibility.MessageEncoder.IntegrationTests (4)
CustomTextMessageEncoder.cs (4)
72using (XmlWriter writer = XmlWriter.Create(stream, _writerSettings)) 84using (XmlWriter writer = XmlWriter.Create(stream, _writerSettings))
illink (6)
ILLink.Tasks (2)
CombineLinkerXmlFiles.cs (2)
46 using (XmlWriter xw = XmlWriter.Create (CombinedLinkerXmlFile, xws)) {
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
420using (var writer = XmlWriter.Create(memory, new XmlWriterSettings { Encoding = Encoding.UTF8 }))
Microsoft.AspNetCore.Mvc.Formatters.Xml (25)
ProblemDetailsWrapper.cs (1)
115public virtual void WriteXml(XmlWriter writer)
SerializableErrorWrapper.cs (2)
84/// <param name="writer">The <see cref="XmlWriter"/> stream to which the object is serialized.</param> 85public void WriteXml(XmlWriter writer)
ValidationProblemDetailsWrapper.cs (1)
76public override void WriteXml(XmlWriter writer)
XmlDataContractSerializerOutputFormatter.cs (10)
169/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 173/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 178/// <returns>A new instance of <see cref="XmlWriter"/></returns> 179public virtual XmlWriter CreateXmlWriter( 189return XmlWriter.Create(writer, xmlWriterSettings); 193/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 198/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 203/// <returns>A new instance of <see cref="XmlWriter"/>.</returns> 204public virtual XmlWriter CreateXmlWriter( 270using var xmlWriter = CreateXmlWriter(context, textWriter, writerSettings);
XmlSerializerOutputFormatter.cs (11)
148/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 152/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 157/// <returns>A new instance of <see cref="XmlWriter"/>.</returns> 158public virtual XmlWriter CreateXmlWriter( 168return XmlWriter.Create(writer, xmlWriterSettings); 172/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 177/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 182/// <returns>A new instance of <see cref="XmlWriter"/></returns> 183public virtual XmlWriter CreateXmlWriter( 247using var xmlWriter = CreateXmlWriter(context, textWriter, writerSettings); 273protected virtual void Serialize(XmlSerializer xmlSerializer, XmlWriter xmlWriter, object? value)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (11)
ProblemDetailsWrapperTest.cs (2)
84using (var xmlWriter = XmlWriter.Create(outputStream))
SerializableErrorWrapperTests.cs (2)
114using (var xmlWriter = XmlWriter.Create(outputStream))
ValidationProblemDetailsWrapperTest.cs (4)
173using (var xmlWriter = XmlWriter.Create(outputStream)) 211using (var xmlWriter = XmlWriter.Create(outputStream))
XmlDataContractSerializerOutputFormatterTest.cs (1)
826public override XmlWriter CreateXmlWriter(
XmlSerializerOutputFormatterTest.cs (2)
616public override XmlWriter CreateXmlWriter( 633protected override void Serialize(XmlSerializer xmlSerializer, XmlWriter xmlWriter, object value)
Microsoft.Build (3)
Construction\Solution\SolutionProjectGenerator.cs (2)
265using (XmlWriter xw = XmlWriter.Create(solutionConfigurationContents, settings))
ElementLocation\XmlDocumentWithLocation.cs (1)
318public override void Save(XmlWriter writer)
Microsoft.Build.Engine.UnitTests (2)
Construction\ElementLocation_Tests.cs (2)
404using (XmlWriter wr = XmlWriter.Create(new FileStream(FileUtilities.GetTemporaryFileName(), FileMode.Create)))
Microsoft.Build.Tasks.Core (2)
XslTransformation.cs (2)
169using (XmlWriter xmlWriter = XmlWriter.Create(_outputPaths[i].ItemSpec, xslct.OutputSettings))
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
632using (var writer = XmlWriter.Create(sb, writerSettings))
Microsoft.CodeAnalysis.Test.Utilities (4)
Assert\AssertXml.cs (2)
76using (var w = XmlWriter.Create(sw, ws))
Win32Res.cs (2)
91using (XmlWriter xw = doc.CreateWriter()) 174using (XmlWriter xw = doc.CreateWriter())
Microsoft.DotNet.Build.Tasks.Installers (2)
src\GenerateMacOSDistributionFile.cs (2)
120using XmlWriter writer = XmlWriter.Create(File.OpenWrite(DestinationFile));
Microsoft.DotNet.SignCheckLibrary (2)
Logging\FileLogger.cs (2)
24internal XmlWriter ResultsWriter 63ResultsWriter = XmlWriter.Create(resultsFile, new XmlWriterSettings()
Microsoft.DotNet.XliffTasks (2)
Model\XDocumentExtensions.cs (2)
24using XmlWriter xmlWriter = XmlWriter.Create(writer, settings);
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
TestAssembly.cs (2)
39using (var writer = XmlWriter.Create(ManifestStream, new XmlWriterSettings { CloseOutput = false }))
Microsoft.Maui.Resizetizer (6)
GenerateSplashAndroidResources.cs (6)
93 using var writer = XmlWriter.Create(colorsFile, Settings); 117 using var writer = XmlWriter.Create(drawableFile, Settings); 143 using var writer = XmlWriter.Create(drawableFile, Settings);
netstandard (1)
netstandard.cs (1)
2509[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlWriter))]
PresentationFramework (34)
MS\Internal\Annotations\Serializer.cs (1)
63public void Serialize(XmlWriter writer, object obj)
System\Windows\Annotations\Annotation.cs (1)
178public void WriteXml(XmlWriter writer)
System\Windows\Annotations\AnnotationResource.cs (1)
109public void WriteXml(XmlWriter writer)
System\Windows\Annotations\LocatorGroup.cs (1)
95public void WriteXml(XmlWriter writer)
System\Windows\Annotations\LocatorPartList.cs (1)
138public void WriteXml(XmlWriter writer)
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
952XmlWriter writer = editor.AppendChild(); 958XmlWriter writer = editor.InsertBefore();
System\Windows\Controls\AccessText.cs (1)
540internal static void SerializeCustom(XmlWriter xmlWriter, object o)
System\Windows\Data\XmlDataProvider.cs (1)
394public void WriteXml(XmlWriter writer)
System\Windows\Documents\TextRangeSerialization.cs (16)
32internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload) 57internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload, bool preserveTextElements) 189private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements) 334private static void WriteXamlTableCellRange(XmlWriter xmlWriter, ITextRange range, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool preserveTextElements) 415private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 535private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 600private static void WriteTableColumnsInformation(ITextRange range, Table table, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper) 644private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 723private static void WriteInheritablePropertiesForFlowDocument(DependencyObject context, XmlWriter xmlWriter, DependencyObject complexProperties) 764private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 829private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 908private static void WriteNoninheritableProperty(XmlWriter xmlWriter, DependencyProperty property, object propertyValue, Type propertyOwnerType, bool onlyAffected, DependencyObject complexProperties, object localValue) 948private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties) 1058private static void WriteComplexProperties(XmlWriter xmlWriter, DependencyObject complexProperties, Type elementType) 1113private static void WriteXamlAtomicElement(DependencyObject element, XmlWriter xmlWriter, bool reduceElement) 1148private static void WriteEmbeddedObject(object embeddedObject, XmlWriter xmlWriter, WpfPayload wpfPayload)
System\Windows\Markup\Primitives\MarkupWriter.cs (5)
70internal static void SaveAsXml(XmlWriter writer, object instance) 89internal static void SaveAsXml(XmlWriter writer, object instance, XamlDesignerSerializationManager manager) 108internal static void SaveAsXml(XmlWriter writer, MarkupObject item) 156internal MarkupWriter(XmlWriter writer) 1660private XmlWriter _writer;
System\Windows\Markup\XamlDesignerSerializationManager.cs (3)
48public XamlDesignerSerializationManager(XmlWriter xmlWriter) 84internal XmlWriter XmlWriter 114private XmlWriter _xmlWriter; //XmlWriter
System\Windows\Markup\XamlWriter.cs (1)
124public static void Save(object obj, XmlWriter xmlWriter)
ReachFramework (142)
Packaging\XpsFixedDocumentReaderWriter.cs (1)
1212internal System.Xml.XmlWriter XmlWriter
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
681internal System.Xml.XmlWriter XmlWriter
Packaging\XpsFixedPageReaderWriter.cs (7)
385XmlWriter XmlWriter { get; } 530public XmlWriter XmlWriter 577public XmlWriter ResourceDictionaryXmlWriter 1953private System.Xml.XmlWriter _pageXmlWriter; 1954private System.Xml.XmlWriter _resourceXmlWriter; 1955private System.Xml.XmlWriter _resourceDictionaryXmlWriter; 2008internal XmlWriter PageXmlWriter
Packaging\XPSSignatureDefinition.cs (1)
325WriteXML(XmlWriter writer)
PrintConfig\PrintCapabilitesWriter.cs (2)
38this._writer = XmlWriter.Create(new StreamWriter(stream, Encoding.UTF8), settings); 827private XmlWriter _writer;
Serialization\Manager\MetroSerializationManager.cs (1)
182XmlWriter
Serialization\Manager\NGCSerializationManager.cs (1)
272XmlWriter
Serialization\Manager\NGCSerializationManagerAsync.cs (1)
490XmlWriter
Serialization\Manager\NullPackagingPolicy.cs (15)
68XmlWriter 72XmlWriter xmlWriter = null; 85xmlWriter = _currentDSWriter as XmlWriter; 128XmlWriter 132XmlWriter xmlWriter = null; 149xmlWriter = _currentFDWriter as XmlWriter; 197XmlWriter 201XmlWriter xmlWriter = null; 776XmlWriter 822XmlWriter 942XmlWriter _currentFDWriter; 945XmlWriter _currentFPWriter; 991System.Xml.XmlWriter _pageXmlWriter; 994System.Xml.XmlWriter _resourceXmlWriter; 997System.Xml.XmlWriter _resourceDictionaryXmlWriter;
Serialization\Manager\ReachDocumentPageSerializer.cs (2)
196private void WriteAttribute(XmlWriter writer, string name, object value) 206XmlWriter
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (2)
102XmlWriter 280private void WriteAttribute(XmlWriter writer, string name, object value)
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
113XmlWriter
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
151XmlWriter
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
285XmlWriter
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
325XmlWriter
Serialization\Manager\ReachFixedPageSerializer.cs (3)
214XmlWriter pageWriter = ((XpsSerializationManager)SerializationManager). 217XmlWriter resWriter = ((XpsSerializationManager)SerializationManager). 361XmlWriter
Serialization\Manager\ReachFixedPageSerializerAsync.cs (3)
333XmlWriter 391XmlWriter pageWriter = ((XpsSerializationManagerAsync)SerializationManager). 394XmlWriter resWriter = ((XpsSerializationManagerAsync)SerializationManager).
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (1)
164XmlWriter
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (1)
211XmlWriter
Serialization\Manager\ReachSerializationUtils.cs (20)
380XmlWriter 384XmlWriter xmlWriter = null; 427XmlWriter xmlWriter 456XmlWriter 460XmlWriter xmlWriter = null; 509XmlWriter xmlWriter 546XmlWriter 550XmlWriter xmlWriter = null; 619XmlWriter xmlWriter 722XmlWriter _documentSequenceXmlWriter; 725XmlWriter _documentXmlWriter; 728XmlWriter _pageXmlWriter; 751XmlWriter writer, 952XmlWriter writer = LinkXmlWriter; 1010private void WriteAttribute(XmlWriter writer, string name, object value) 1038XmlWriter 1051XmlWriter 1080XmlWriter writer = this.XmlWriter; // guarantee page is created 1092private XmlWriter _linkXmlWriter; 1094private XmlWriter _serializerXmlWriter;
Serialization\Manager\ReachSerializer.cs (2)
359XmlWriter 406XmlWriter _xmlWriter;
Serialization\Manager\ReachSerializerAsync.cs (2)
466XmlWriter 502XmlWriter _xmlWriter;
Serialization\Manager\ReachVisualSerializer.cs (7)
52XmlWriter pageWriter = SerializationManager. 55XmlWriter resWriter = SerializationManager. 83XmlWriter resWriter, 84XmlWriter bodyWriter 145XmlWriter 188XmlWriter pageWriter = SerializationManager. 191XmlWriter resWriter = SerializationManager.
Serialization\Manager\ReachVisualSerializerAsync.cs (7)
82XmlWriter pageWriter = ((PackageSerializationManager)manager). 85XmlWriter resWriter = ((PackageSerializationManager)manager). 112XmlWriter resWriter, 113XmlWriter bodyWriter 195XmlWriter 235XmlWriter pageWriter = ((PackageSerializationManager)manager). 238XmlWriter resWriter = ((PackageSerializationManager)manager).
Serialization\Manager\XpsOMDocumentPageSerializer.cs (2)
224XmlWriter writer, 237XmlWriter
Serialization\Manager\XpsOMDocumentPageSerializerAsync.cs (1)
112XmlWriter
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
193XmlWriter pageWriter = SerializationManager. 196XmlWriter resWriter = SerializationManager. 319XmlWriter
Serialization\Manager\XpsOMFixedPageSerializerAsync.cs (1)
146XmlWriter
Serialization\Manager\XpsOMHierarchySimulator.cs (4)
29XmlWriter 44XmlWriter xmlWriter 68XmlWriter 102XmlWriter xmlWriter
Serialization\Manager\XpsOMPackagingPolicy.cs (9)
192XmlWriter 218XmlWriter 239XmlWriter 242XmlWriter xmlWriter = null; 340XmlWriter 352XmlWriter 962private XmlWriter _currentPageContentXmlWriter; 963private XmlWriter _currentResourceXmlWriter; 964private XmlWriter _currentFixedPageXmlWriter;
Serialization\Manager\XpsOMSerializationManager.cs (3)
61XmlWriter pageWriter = null; 294internal override Xml.XmlWriter AcquireXmlWriter(Type writerType) 296XmlWriter xmlWriter = null;
Serialization\Manager\XpsOMSerializationManagerAsync.cs (1)
494XmlWriter _currentPageXmlWriter;
Serialization\Manager\XpsPackagingPolicy.cs (16)
221XmlWriter 239XmlWriter 257XmlWriter 312XmlWriter 322XmlWriter 550XmlWriter 554XmlWriter xmlWriter = null; 618XmlWriter 622XmlWriter xmlWriter = null; 693XmlWriter 697XmlWriter xmlWriter = null; 1279XmlWriter 1311XmlWriter 1492XmlWriter _currentDSWriter; 1495XmlWriter _currentFDWriter; 1498XmlWriter _currentFPWriter;
Serialization\Manager\XpsSerializationManager.cs (5)
91XmlWriter pageXmlWriter = null; 421XmlWriter 426XmlWriter xmlWriter = null; 1219XmlWriter resWriter, 1220XmlWriter bodyWriter,
Serialization\Manager\XpsSerializationManagerAsync.cs (1)
556XmlWriter _currentPageXmlWriter;
Serialization\VisualSerializer.cs (6)
55internal VisualSerializer(System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, PackageSerializationManager manager) 682XmlWriter oldwriter = _writer; 841protected System.Xml.XmlWriter _writer; 842protected System.Xml.XmlWriter _resWriter; 843protected System.Xml.XmlWriter _bodyWriter;
Serialization\VisualTreeFlattener.cs (6)
179internal override XmlWriter AcquireXmlWriter(Type writerType) 359internal VisualTreeFlattener(System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, PackageSerializationManager manager, Size pageSize, TreeWalkProgress treeWalkProgress) 763static internal void SaveAsXml(Visual visual, System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, String fileName) 841static internal bool WritePath(System.Xml.XmlWriter bodyWriter, Geometry geometry, Size pageSize)
Roslyn.Test.PdbUtilities (2)
Reader\Token2SourceLineExporter.cs (2)
1142using (var writer = XmlWriter.Create(builder, s_xmlWriterSettings))
System.Configuration.ConfigurationManager (12)
System\Configuration\ConfigurationElement.cs (4)
1009protected internal virtual bool SerializeToXmlElement(XmlWriter writer, string elementName) 1038protected internal virtual bool SerializeElement(XmlWriter writer, bool serializeCollectionKey) 1180private static bool SerializeLockList(ConfigurationLockCollection list, string elementKey, XmlWriter writer) 1843protected virtual void PreSerialize(XmlWriter writer)
System\Configuration\ConfigurationElementCollection.cs (1)
1030protected internal override bool SerializeElement(XmlWriter writer, bool serializeCollectionKey)
System\Configuration\SettingValueElement.cs (1)
58protected internal override bool SerializeToXmlElement(XmlWriter writer, string elementName)
System\Diagnostics\ListenerElementsCollection.cs (2)
247protected override void PreSerialize(XmlWriter writer) 266protected internal override bool SerializeElement(XmlWriter writer, bool serializeCollectionKey)
System\Diagnostics\SourceElementsCollection.cs (2)
98protected override void PreSerialize(XmlWriter writer) 117protected internal override bool SerializeElement(XmlWriter writer, bool serializeCollectionKey)
System\Diagnostics\SwitchElementsCollection.cs (2)
62protected override void PreSerialize(XmlWriter writer) 81protected internal override bool SerializeElement(XmlWriter writer, bool serializeCollectionKey)
System.Data.Common (70)
System\Data\Common\DataStorage.cs (1)
290public virtual void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\Common\ObjectStorage.cs (1)
504public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\Common\SqlUDTStorage.cs (1)
224public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\DataColumn.cs (1)
1783internal void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\DataSet.cs (13)
1967/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to an <see cref='XmlWriter'/> object.</summary> 1968/// <param name="writer">The <see cref='XmlWriter'/> object with which to write.</param> 1971public void WriteXmlSchema(XmlWriter? writer) => WriteXmlSchema(writer, SchemaFormat.Public, null); 1973/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to an <see cref='XmlWriter'/> object.</summary> 1974/// <param name="writer">The <see cref='XmlWriter'/> object with which to write.</param> 1978public void WriteXmlSchema(XmlWriter? writer, Converter<Type, string> multipleTargetConverter) 2034private void WriteXmlSchema(XmlWriter? writer, SchemaFormat schemaFormat, Converter<Type, string>? multipleTargetConverter) 2904public void WriteXml(XmlWriter? writer) => WriteXml(writer, XmlWriteMode.IgnoreSchema); 2941public void WriteXml(XmlWriter? writer, XmlWriteMode mode) 3531XmlWriter writer = new XmlTextWriter(stream, null); 3542private static void WriteXmlSchema(DataSet ds, XmlWriter writer) 3591void IXmlSerializable.WriteXml(XmlWriter writer) 3603private void WriteXmlInternal(XmlWriter writer)
System\Data\DataTable.cs (9)
5332public void WriteXml(XmlWriter? writer) => WriteXml(writer, XmlWriteMode.IgnoreSchema, false); 5336public void WriteXml(XmlWriter? writer, bool writeHierarchy) => WriteXml(writer, XmlWriteMode.IgnoreSchema, writeHierarchy); 5385public void WriteXml(XmlWriter? writer, XmlWriteMode mode) 5392public void WriteXml(XmlWriter? writer, XmlWriteMode mode, bool writeHierarchy) 5561public void WriteXmlSchema(XmlWriter? writer) => WriteXmlSchema(writer, false); 5565public void WriteXmlSchema(XmlWriter? writer, bool writeHierarchy) 6731XmlWriter writer = new XmlTextWriter(stream, null); 6773void IXmlSerializable.WriteXml(XmlWriter writer) 6785private void WriteXmlInternal(XmlWriter writer)
System\Data\SQLTypes\SQLBinary.cs (1)
446void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLBoolean.cs (1)
496void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLByte.cs (1)
506void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLBytes.cs (1)
556void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLChars.cs (1)
509void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLDateTime.cs (1)
660void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLDecimal.cs (1)
3372void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLDouble.cs (1)
422void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLGuid.cs (1)
310void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLInt16.cs (1)
507void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLInt32.cs (1)
522void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLInt64.cs (1)
581void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLMoney.cs (1)
579void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLSingle.cs (1)
432void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SQLString.cs (1)
938void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\SQLTypes\SqlXml.cs (5)
145XmlWriter ww = XmlWriter.Create(sw, writerSettings); 185XmlWriter ww = XmlWriter.Create(writerStream, writerSettings); 233void IXmlSerializable.WriteXml(XmlWriter writer)
System\Data\xmlsaver.cs (18)
545internal void SchemaTree(XmlDocument xd, XmlWriter xmlWriter, DataSet? ds, DataTable? dt, bool writeHierarchy) 850XmlWriter? xw = null; 1077internal void SetPath(XmlWriter xw) 1103internal void Save(DataSet ds, XmlWriter xw) 1110internal void Save(DataTable dt, XmlWriter xw) 1124internal void Save(DataSet ds, DataTable? dt, XmlWriter xw) 1131internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy) 1138internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy, Converter<Type, string>? multipleTargetConverter) 2267internal XmlWriter _xmlw = default!; // Late-initialized 2348internal void Save(XmlWriter xmlw) 2355internal void Save(XmlWriter xmlw, DataTable? table) 2679private XmlWriter? _xmlw; 2803internal void SaveDiffgramData(XmlWriter xw, Hashtable rowsOrder) 2847internal void Save(XmlWriter xw, bool writeSchema) 3127private readonly XmlWriter _xmltextWriter; 3129internal static XmlWriter CreateWriter(XmlWriter xw) 3134private DataTextWriter(XmlWriter w)
System\Xml\XmlBoundElement.cs (6)
237public override void WriteContentTo(XmlWriter w) 251public override void WriteTo(XmlWriter w) 265private void WriteRootBoundElementTo(DataPointer dp, XmlWriter w) 305private static void WriteBoundElementTo(DataPointer dp, XmlWriter w) 333private static void WriteBoundElementContentTo(DataPointer dp, XmlWriter w) 347private static void WriteTo(DataPointer dp, XmlWriter w)
System.IO.Packaging (9)
System\IO\Packaging\InternalRelationshipCollection.cs (3)
467using (XmlWriter writer = XmlWriter.Create(s, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 })) 494internal static void WriteRelationshipsAsXml(XmlWriter writer, IEnumerable<PackageRelationship> relationships, bool alwaysWriteTargetModeAttribute)
System\IO\Packaging\PartBasedPackageProperties.cs (2)
687_xmlWriter = XmlWriter.Create(writerStream, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 }); 833private XmlWriter? _xmlWriter;
System\IO\Packaging\ZipPackage.cs (4)
911using (XmlWriter writer = XmlWriter.Create(s, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 })) 1257private static void WriteOverrideElement(XmlWriter xmlWriter, PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 1266private static void WriteDefaultElement(XmlWriter xmlWriter, string extension, ContentType contentType)
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\DataContractSerializer.cs (4)
255public override void WriteObject(XmlWriter writer, object? graph) 262public override void WriteStartObject(XmlWriter writer, object? graph) 269public override void WriteObjectContent(XmlWriter writer, object? graph) 276public override void WriteEndObject(XmlWriter writer)
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
15internal static void WriteArray(XmlWriter writer, byte[] array, int offset, int count)
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (4)
274public override void WriteEndObject(XmlWriter writer) 301public override void WriteObject(XmlWriter writer, object? graph) 315public override void WriteObjectContent(XmlWriter writer, object? graph) 329public override void WriteStartObject(XmlWriter writer, object? graph)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (2)
13public JsonWriterDelegator(XmlWriter writer) 18public JsonWriterDelegator(XmlWriter writer, DateTimeFormat? dateTimeFormat)
System\Runtime\Serialization\SchemaExporter.cs (2)
346XmlWriter xmlWriter = XmlWriter.Create(stringWriter, writerSettings);
System\Runtime\Serialization\XmlObjectSerializer.cs (4)
44public virtual void WriteObject(XmlWriter writer, object? graph) 53public virtual void WriteStartObject(XmlWriter writer, object? graph) 62public virtual void WriteObjectContent(XmlWriter writer, object? graph) 71public virtual void WriteEndObject(XmlWriter writer)
System\Runtime\Serialization\XmlSerializableServices.cs (1)
55public static void WriteNodes(XmlWriter xmlWriter, XmlNode?[]? nodes)
System\Runtime\Serialization\XmlSerializableWriter.cs (2)
13private XmlWriter _xmlWriter = null!; // initialized in BeginWrite 17internal void BeginWrite(XmlWriter xmlWriter, object obj)
System\Runtime\Serialization\XmlWriterDelegator.cs (3)
13protected XmlWriter writer; 18public XmlWriterDelegator(XmlWriter writer) 26internal XmlWriter Writer
System\Xml\XmlDictionaryWriter.cs (3)
70public static XmlDictionaryWriter CreateDictionaryWriter(XmlWriter writer) 630private readonly XmlWriter _writer; 634public XmlWrappedWriter(XmlWriter writer)
System.Private.Xml (185)
System\Xml\BinHexEncoder.cs (1)
10internal static void Encode(byte[] buffer, int index, int count, XmlWriter writer)
System\Xml\BinHexEncoderAsync.cs (2)
10internal static Task EncodeAsync(byte[] buffer, int index, int count, XmlWriter writer) 19static async Task Core(byte[] buffer, int index, int count, XmlWriter writer)
System\Xml\Core\QueryOutputWriterV1.cs (2)
25private readonly XmlWriter _wrapped; 33public QueryOutputWriterV1(XmlWriter writer, XmlWriterSettings settings)
System\Xml\Core\XmlAsyncCheckWriter.cs (3)
11private readonly XmlWriter _coreWriter; 14internal XmlWriter CoreWriter 22public XmlAsyncCheckWriter(XmlWriter writer)
System\Xml\Core\XmlAutoDetectWriter.cs (2)
412_wrapped = ((XmlWellFormedWriter)XmlWriter.Create(_textWriter, _writerSettings)).RawWriter!; 414_wrapped = ((XmlWellFormedWriter)XmlWriter.Create(_strm!, _writerSettings)).RawWriter!;
System\Xml\Core\XmlCharCheckingWriter.cs (1)
30internal XmlCharCheckingWriter(XmlWriter baseWriter, bool checkValues, bool checkNames, bool replaceNewLines, string newLineChars)
System\Xml\Core\XmlEventCache.cs (1)
96public void EventsToWriter(XmlWriter writer)
System\Xml\Core\XmlWellFormedWriter.cs (2)
25private readonly XmlWriter _writer; 238internal XmlWellFormedWriter(XmlWriter writer, XmlWriterSettings settings)
System\Xml\Core\XmlWellFormedWriterHelpers.cs (2)
94internal void WriteDecl(XmlWriter writer, XmlRawWriter? rawWriter) 343internal void Replay(XmlWriter writer)
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (2)
29internal async Task WriteDeclAsync(XmlWriter writer, XmlRawWriter? rawWriter) 54internal async Task ReplayAsync(XmlWriter writer)
System\Xml\Core\XmlWrappingWriter.cs (2)
16protected XmlWriter writer; 21internal XmlWrappingWriter(XmlWriter baseWriter)
System\Xml\Core\XmlWriter.cs (15)
613public static XmlWriter Create(string outputFileName) 623XmlWriter writer = new XmlEncodedRawTextWriter(fs, settings); 634public static XmlWriter Create(string outputFileName, XmlWriterSettings? settings) 641public static XmlWriter Create(Stream output) 648XmlWriter writer = new XmlUtf8RawTextWriter(output, settings); 653public static XmlWriter Create(Stream output, XmlWriterSettings? settings) 660public static XmlWriter Create(TextWriter output) 667XmlWriter writer = new XmlEncodedRawTextWriter(output, settings); 672public static XmlWriter Create(TextWriter output, XmlWriterSettings? settings) 679public static XmlWriter Create(StringBuilder output) 689public static XmlWriter Create(StringBuilder output, XmlWriterSettings? settings) 698public static XmlWriter Create(XmlWriter output) 704public static XmlWriter Create(XmlWriter output, XmlWriterSettings? settings)
System\Xml\Core\XmlWriterSettings.cs (10)
332internal XmlWriter CreateWriter(string outputFileName) 360internal XmlWriter CreateWriter(Stream output) 364XmlWriter writer; 435internal XmlWriter CreateWriter(TextWriter output) 439XmlWriter writer; 481internal XmlWriter CreateWriter(XmlWriter output) 527private XmlWriter AddConformanceWrapper(XmlWriter baseWriter) 572XmlWriter writer = baseWriter;
System\Xml\Dom\DocumentXPathNavigator.cs (6)
1500public override XmlWriter PrependChild() 1517public override XmlWriter AppendChild() 1534public override XmlWriter InsertAfter() 1559public override XmlWriter InsertBefore() 1583public override XmlWriter CreateAttributes() 1595public override XmlWriter ReplaceRange(XPathNavigator lastSiblingToReplace)
System\Xml\Dom\XmlAttribute.cs (2)
346public override void WriteTo(XmlWriter w) 354public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlCDataSection.cs (2)
77public override void WriteTo(XmlWriter w) 83public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlComment.cs (2)
42public override void WriteTo(XmlWriter w) 48public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlDeclaration.cs (2)
165public override void WriteTo(XmlWriter w) 172public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlDocument.cs (3)
1433public virtual void Save(XmlWriter w) 1466public override void WriteTo(XmlWriter w) 1474public override void WriteContentTo(XmlWriter xw)
System\Xml\Dom\XmlDocumentFragment.cs (2)
180public override void WriteTo(XmlWriter w) 186public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlDocumentType.cs (2)
115public override void WriteTo(XmlWriter w) 121public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlElement.cs (4)
428public override void WriteTo(XmlWriter w) 453private static void WriteElementTo(XmlWriter writer, XmlElement el) 508private void WriteStartElement(XmlWriter w) 524public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlEntity.cs (2)
140public override void WriteTo(XmlWriter w) 145public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlEntityReference.cs (2)
152public override void WriteTo(XmlWriter w) 158public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlNode.cs (2)
1038public abstract void WriteTo(XmlWriter w); 1041public abstract void WriteContentTo(XmlWriter w);
System\Xml\Dom\XmlNotation.cs (2)
86public override void WriteTo(XmlWriter w) 91public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlProcessingInstruction.cs (2)
87public override void WriteTo(XmlWriter w) 93public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlSignificantWhiteSpace.cs (2)
93public override void WriteTo(XmlWriter w) 99public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlText.cs (2)
122public override void WriteTo(XmlWriter w) 128public override void WriteContentTo(XmlWriter w)
System\Xml\Dom\XmlUnspecifiedAttribute.cs (1)
76public override void WriteTo(XmlWriter w)
System\Xml\Dom\XmlWhitespace.cs (2)
93public override void WriteTo(XmlWriter w) 99public override void WriteContentTo(XmlWriter w)
System\Xml\Schema\XmlSchema.cs (2)
132public void Write(XmlWriter writer) 144public void Write(XmlWriter writer, XmlNamespaceManager? namespaceManager)
System\Xml\Serialization\Compilation.cs (1)
634internal void InvokeWriter(XmlMapping mapping, XmlWriter xmlWriter, object? o, XmlSerializerNamespaces? namespaces, string? encodingStyle, string? id)
System\Xml\Serialization\IXmlSerializable.cs (1)
19void WriteXml(XmlWriter writer);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
21public ReflectionXmlSerializationWriter(XmlMapping xmlMapping, XmlWriter xmlWriter, XmlSerializerNamespaces namespaces, string? encodingStyle, string? id)
System\Xml\Serialization\Xmlcustomformatter.cs (1)
162internal static void WriteArrayBase64(XmlWriter writer, byte[] inData, int start, int count)
System\Xml\Serialization\XmlSchemas.cs (2)
581XmlWriter xmlWriter = XmlWriter.Create(sw, settings);
System\Xml\Serialization\XmlSerializationWriter.cs (3)
27private XmlWriter _w = null!; 45internal void Init(XmlWriter w, XmlSerializerNamespaces? namespaces, string? encodingStyle, string? idBase) 65protected XmlWriter Writer
System\Xml\Serialization\XmlSerializationWriterILGen.cs (9)
806MethodInfo XmlWriter_WriteStartElement = typeof(XmlWriter).GetMethod( 831MethodInfo XmlWriter_WriteString = typeof(XmlWriter).GetMethod( 844MethodInfo XmlWriter_WriteEndElement = typeof(XmlWriter).GetMethod( 872MethodInfo XmlWriter_WriteStartElement = typeof(XmlWriter).GetMethod( 894MethodInfo XmlWriter_WriteEndElement = typeof(XmlWriter).GetMethod( 1179MethodInfo XmlWriter_WriteStartAttribute = typeof(XmlWriter).GetMethod( 1230MethodInfo XmlWriter_WriteString = typeof(XmlWriter).GetMethod( 1294MethodInfo XmlWriter_WriteEndAttribute = typeof(XmlWriter).GetMethod( 1878new Type[] { typeof(XmlWriter) }
System\Xml\Serialization\XmlSerializer.cs (10)
343XmlWriter xmlWriter = XmlWriter.Create(textWriter, s_writerSettings); 358XmlWriter xmlWriter = XmlWriter.Create(stream, s_writerSettings); 364public void Serialize(XmlWriter xmlWriter, object? o) 371public void Serialize(XmlWriter xmlWriter, object? o, XmlSerializerNamespaces? namespaces) 378public void Serialize(XmlWriter xmlWriter, object? o, XmlSerializerNamespaces? namespaces, string? encodingStyle) 385public void Serialize(XmlWriter xmlWriter, object? o, XmlSerializerNamespaces? namespaces, string? encodingStyle, string? id) 423private void SerializeUsingReflection(XmlWriter xmlWriter, object? o, XmlSerializerNamespaces? namespaces, string? encodingStyle, string? id) 856private void SerializePrimitive(XmlWriter xmlWriter, object? o, XmlSerializerNamespaces? namespaces)
System\Xml\XPath\XPathNavigator.cs (22)
564public virtual void WriteSubtree(XmlWriter writer) 1262public virtual XmlWriter PrependChild() 1267public virtual XmlWriter AppendChild() 1272public virtual XmlWriter InsertAfter() 1277public virtual XmlWriter InsertBefore() 1282public virtual XmlWriter CreateAttributes() 1287public virtual XmlWriter ReplaceRange(XPathNavigator lastSiblingToReplace) 1309XmlWriter writer = ReplaceRange(this); 1329XmlWriter xmlWriter; 1351xmlWriter = XmlWriter.Create(stringWriter, writerSettings); 1381XmlWriter xmlWriter; 1389xmlWriter = XmlWriter.Create(stringWriter, writerSettings); 1455XmlWriter writer = AppendChild(); 1482XmlWriter writer = PrependChild(); 1509XmlWriter writer = InsertBefore(); 1536XmlWriter writer = InsertAfter(); 1565XmlWriter writer = PrependChild(); 1577XmlWriter writer = AppendChild(); 1589XmlWriter writer = InsertBefore(); 1601XmlWriter writer = InsertAfter(); 1613XmlWriter writer = CreateAttributes(); 2022internal static void BuildSubtree(XmlReader reader, XmlWriter writer)
System\Xml\Xsl\IlGen\XmlILTrace.cs (6)
90XmlWriter w = XmlWriter.Create(s_dirName + "\\" + fileName); 109XmlWriter w = XmlWriter.Create(s_dirName + "\\" + fileName); 159private static void WriteQil(QilExpression qil, XmlWriter w) 168private static void WriteQilRewrite(QilExpression qil, XmlWriter w, string? rewriteName)
System\Xml\Xsl\QIL\QilXmlWriter.cs (3)
40private readonly XmlWriter writer; 59public QilXmlWriter(XmlWriter writer) : this(writer, Options.Annotations | Options.TypeInfo | Options.LineInfo | Options.NodeIdentity | Options.NodeLocation) 66public QilXmlWriter(XmlWriter writer, Options options)
System\Xml\Xsl\Runtime\RtfNavigator.cs (3)
32public abstract void CopyToWriter(XmlWriter writer); 234public override void CopyToWriter(XmlWriter writer) 345public override void CopyToWriter(XmlWriter writer)
System\Xml\Xsl\Runtime\XmlRawWriterWrapper.cs (2)
17private readonly XmlWriter _wrapped; 19public XmlRawWriterWrapper(XmlWriter writer)
System\Xml\Xsl\Runtime\XsltFunctions.cs (2)
257XmlWriter xw = XmlWriter.Create(sb, settings);
System\Xml\Xsl\XmlILCommand.cs (1)
46public void Execute(object defaultDocument, XmlResolver? dataSources, XsltArgumentList? argumentList, XmlWriter writer)
System\Xml\Xsl\XsltOld\Processor.cs (1)
426public void Execute(XmlWriter writer)
System\Xml\Xsl\XsltOld\WriterOutput.cs (2)
11private XmlWriter _writer; 14internal WriterOutput(Processor processor, XmlWriter writer)
System\Xml\Xslt\XslCompiledTransform.cs (22)
242public void Transform(IXPathNavigable input, XmlWriter results) 250public void Transform(IXPathNavigable input, XsltArgumentList? arguments, XmlWriter results) 263using XmlWriter writer = XmlWriter.Create(results, OutputSettings); 272using XmlWriter writer = XmlWriter.Create(results, OutputSettings); 280public void Transform(XmlReader input, XmlWriter results) 288public void Transform(XmlReader input, XsltArgumentList? arguments, XmlWriter results) 301using XmlWriter writer = XmlWriter.Create(results, OutputSettings); 310using XmlWriter writer = XmlWriter.Create(results, OutputSettings); 321public void Transform(string inputUri, XmlWriter results) 330public void Transform(string inputUri, XsltArgumentList? arguments, XmlWriter results) 345using XmlWriter writer = XmlWriter.Create(results, OutputSettings); 355using XmlWriter writer = XmlWriter.Create(results, OutputSettings); 366using XmlWriter writer = XmlWriter.Create(resultsFile, OutputSettings); 376public void Transform(XmlReader input, XsltArgumentList? arguments, XmlWriter results, XmlResolver? documentResolver) 387public void Transform(IXPathNavigable input, XsltArgumentList? arguments, XmlWriter results, XmlResolver? documentResolver)
System\Xml\Xslt\XslTransform.cs (4)
128public void Transform(XPathNavigator input, XsltArgumentList? args, XmlWriter output, XmlResolver? resolver) 135public void Transform(XPathNavigator input, XsltArgumentList? args, XmlWriter output) 206public void Transform(IXPathNavigable input, XsltArgumentList? args, XmlWriter output, XmlResolver? resolver) 213public void Transform(IXPathNavigable input, XsltArgumentList? args, XmlWriter output)
System.Private.Xml.Linq (112)
System\Xml\Linq\XAttribute.cs (2)
216using (XmlWriter w = XmlWriter.Create(sw, ws))
System\Xml\Linq\XCData.cs (6)
43/// Write this <see cref="XCData"/> to the given <see cref="XmlWriter"/>. 46/// The <see cref="XmlWriter"/> to write this <see cref="XCData"/> to. 48public override void WriteTo(XmlWriter writer) 56/// Write this <see cref="XCData"/> to the given <see cref="XmlWriter"/>. 59/// The <see cref="XmlWriter"/> to write this <see cref="XCData"/> to. 67public override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken)
System\Xml\Linq\XComment.cs (6)
89/// Write this <see cref="XComment"/> to the passed in <see cref="XmlWriter"/>. 92/// The <see cref="XmlWriter"/> to write this <see cref="XComment"/> to. 94public override void WriteTo(XmlWriter writer) 102/// Write this <see cref="XComment"/> to the passed in <see cref="XmlWriter"/>. 105/// The <see cref="XmlWriter"/> to write this <see cref="XComment"/> to. 108public override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken)
System\Xml\Linq\XContainer.cs (6)
237/// Creates an <see cref="XmlWriter"/> used to add either nodes 241/// <returns>An <see cref="XmlWriter"/></returns> 242public XmlWriter CreateWriter() 246return XmlWriter.Create(new XNodeBuilder(this), settings); 1290internal void WriteContentTo(XmlWriter writer) 1318internal async Task WriteContentToAsync(XmlWriter writer, CancellationToken cancellationToken)
System\Xml\Linq\XDocument.cs (26)
602using (XmlWriter w = XmlWriter.Create(stream, ws)) 636XmlWriter w = XmlWriter.Create(stream, ws); 676using (XmlWriter w = XmlWriter.Create(textWriter, ws)) 683/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 686/// The <see cref="XmlWriter"/> to output the XML to. 688public void Save(XmlWriter writer) 710XmlWriter w = XmlWriter.Create(textWriter, ws); 721/// or an <see cref="XmlWriter"/>. Optionally whitespace can be preserved. 743/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 746/// The <see cref="XmlWriter"/> to output the XML to. 751public Task SaveAsync(XmlWriter writer, CancellationToken cancellationToken) 780using (XmlWriter w = XmlWriter.Create(fileName, ws)) 788/// passed in <see cref="XmlWriter"/>. 789/// <seealso cref="XDocument.Save(XmlWriter)"/> 792/// The <see cref="XmlWriter"/> to output the content of this 795public override void WriteTo(XmlWriter writer) 817/// passed in <see cref="XmlWriter"/>. 818/// <seealso cref="XDocument.Save(XmlWriter)"/> 821/// The <see cref="XmlWriter"/> to output the content of this 825public override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken) 834private async Task WriteToAsyncInternal(XmlWriter writer, CancellationToken cancellationToken)
System\Xml\Linq\XDocumentType.cs (6)
139/// Write this <see cref="XDocumentType"/> to the passed in <see cref="XmlWriter"/>. 142/// The <see cref="XmlWriter"/> to write this <see cref="XDocumentType"/> to. 144public override void WriteTo(XmlWriter writer) 152/// Write this <see cref="XDocumentType"/> to the passed in <see cref="XmlWriter"/>. 155/// The <see cref="XmlWriter"/> to write this <see cref="XDocumentType"/> to. 160public override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken)
System\Xml\Linq\XElement.cs (24)
172/// or an <see cref="XmlWriter"/>. Optionally whitespace can be preserved. 206using (XmlWriter w = XmlWriter.Create(fileName, ws)) 1063using (XmlWriter w = XmlWriter.Create(stream, ws)) 1086XmlWriter w = XmlWriter.Create(stream, ws); 1125using (XmlWriter w = XmlWriter.Create(textWriter, ws)) 1148XmlWriter w = XmlWriter.Create(textWriter, ws); 1156/// Output this <see cref="XElement"/> to an <see cref="XmlWriter"/>. 1159/// The <see cref="XmlWriter"/> to output the XML to. 1161public void Save(XmlWriter writer) 1171/// Output this <see cref="XElement"/> to an <see cref="XmlWriter"/>. 1174/// The <see cref="XmlWriter"/> to output the XML to. 1177public Task SaveAsync(XmlWriter writer, CancellationToken cancellationToken) 1186private async Task SaveAsyncInternal(XmlWriter writer, CancellationToken cancellationToken) 1296/// Write this <see cref="XElement"/> to the passed in <see cref="XmlWriter"/>. 1299/// The <see cref="XmlWriter"/> to write this <see cref="XElement"/> to. 1301public override void WriteTo(XmlWriter writer) 1315public override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken) 1891/// The <see cref="XmlWriter"/> stream to which the <see cref="XElement"/> 1894void IXmlSerializable.WriteXml(XmlWriter writer)
System\Xml\Linq\XLinq.cs (4)
197private readonly XmlWriter _writer; 200public ElementWriter(XmlWriter writer) 528private readonly XmlWriter _writer; 533public StreamingElementWriter(XmlWriter w)
System\Xml\Linq\XNode.cs (8)
610/// Write the current node to an <see cref="XmlWriter"/>. 612/// <param name="writer">The <see cref="XmlWriter"/> to write the current node into.</param> 613public abstract void WriteTo(XmlWriter writer); 616/// Write the current node to an <see cref="XmlWriter"/>. 618/// <param name="writer">The <see cref="XmlWriter"/> to write the current node into.</param> 620public abstract Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken); 701using (XmlWriter w = XmlWriter.Create(sw, ws))
System\Xml\Linq\XProcessingInstruction.cs (6)
115/// Writes this <see cref="XProcessingInstruction"/> to the passed in <see cref="XmlWriter"/>. 118/// The <see cref="XmlWriter"/> to write this <see cref="XProcessingInstruction"/> to. 120public override void WriteTo(XmlWriter writer) 128/// Writes this <see cref="XProcessingInstruction"/> to the passed in <see cref="XmlWriter"/>. 131/// The <see cref="XmlWriter"/> to write this <see cref="XProcessingInstruction"/> to. 134public override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken)
System\Xml\Linq\XStreamingElement.cs (12)
119using (XmlWriter w = XmlWriter.Create(stream, ws)) 147using (XmlWriter w = XmlWriter.Create(textWriter, ws)) 156/// <param name="writer"><see cref="XmlWriter"/> to write to </param> 157public void Save(XmlWriter writer) 186using (XmlWriter w = XmlWriter.Create(fileName, ws)) 216/// Write this <see cref="XStreamingElement"/> to an <see cref="XmlWriter"/> 219public void WriteTo(XmlWriter writer) 234using (XmlWriter w = XmlWriter.Create(sw, ws))
System\Xml\Linq\XText.cs (6)
78/// Write this <see cref="XText"/> to the given <see cref="XmlWriter"/>. 81/// The <see cref="XmlWriter"/> to write this <see cref="XText"/> to. 83public override void WriteTo(XmlWriter writer) 98/// Write this <see cref="XText"/> to the given <see cref="XmlWriter"/>. 101/// The <see cref="XmlWriter"/> to write this <see cref="XText"/> to. 106public override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1741CodeParameterDeclarationExpression writerArg = new CodeParameterDeclarationExpression(typeof(XmlWriter), "writer");
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (1)
134XmlWriter writer = new XmlTextWriter(ms, null);
System.ServiceModel.Primitives.Tests (5)
IdentityModel\SecurityTokenSerializerTest.cs (5)
22var xmlWriter = XmlWriter.Create(new MemoryStream()); 126protected override void WriteKeyIdentifierClauseCore(XmlWriter writer, SecurityKeyIdentifierClause keyIdentifierClause) 131protected override void WriteKeyIdentifierCore(XmlWriter writer, SecurityKeyIdentifier keyIdentifier) 136protected override void WriteTokenCore(XmlWriter writer, SecurityToken token)
System.ServiceModel.Syndication (118)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (20)
96void IXmlSerializable.WriteXml(XmlWriter writer) 116public override void WriteTo(XmlWriter writer) 211internal static void WriteCategory(XmlWriter writer, SyndicationCategory category, string version) 382internal static void WriteContentTo(XmlWriter writer, string elementName, SyndicationContent content) 387internal static void WriteElement(XmlWriter writer, string elementName, string value) 395internal void WriteFeedAuthorsTo(XmlWriter writer, Collection<SyndicationPerson> authors) 404internal void WriteFeedContributorsTo(XmlWriter writer, Collection<SyndicationPerson> contributors) 413internal static void WriteFeedLastUpdatedTimeTo(XmlWriter writer, DateTimeOffset lastUpdatedTime, bool isRequired) 425internal void WriteItemAuthorsTo(XmlWriter writer, Collection<SyndicationPerson> authors) 434internal void WriteItemContents(XmlWriter dictWriter, SyndicationItem item) 439internal void WriteItemContributorsTo(XmlWriter writer, Collection<SyndicationPerson> contributors) 448internal static void WriteItemLastUpdatedTimeTo(XmlWriter writer, DateTimeOffset lastUpdatedTime) 459internal static void WriteLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 530protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 537protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 1094private void WriteCategoriesTo(XmlWriter writer, Collection<SyndicationCategory> categories) 1102private void WriteFeed(XmlWriter writer) 1112private void WriteFeedTo(XmlWriter writer, SyndicationFeed feed, bool isSourceFeed) 1164private void WriteItemContents(XmlWriter dictWriter, SyndicationItem item, Uri feedBaseUri) 1204private void WritePersonTo(XmlWriter writer, SyndicationPerson p, string elementName)
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (3)
88void IXmlSerializable.WriteXml(XmlWriter writer) 108public override void WriteTo(XmlWriter writer) 128private void WriteItem(XmlWriter writer)
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (3)
85void IXmlSerializable.WriteXml(XmlWriter writer) 115public override void WriteTo(XmlWriter writer) 177private void WriteDocument(XmlWriter writer)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (11)
71void IXmlSerializable.WriteXml(XmlWriter writer) 102public override void WriteTo(XmlWriter writer) 136internal static void WriteCategoriesInnerXml(XmlWriter writer, CategoriesDocument categories, Uri baseUri, string version) 306private static void WriteCategories(XmlWriter writer, CategoriesDocument categories, Uri baseUri, string version) 313private static void WriteInlineCategoriesContent(XmlWriter writer, InlineCategoriesDocument categories, string version) 332private static void WriteReferencedCategoriesContent(XmlWriter writer, ReferencedCategoriesDocument categories, string version) 342private static void WriteXmlBase(XmlWriter writer, Uri baseUri) 347private static void WriteXmlLang(XmlWriter writer, string lang) 566private void WriteCollection(XmlWriter writer, ResourceCollectionInfo collection, Uri baseUri) 593private void WriteDocument(XmlWriter writer) 615private void WriteWorkspace(XmlWriter writer, Workspace workspace, Uri baseUri)
System\ServiceModel\Syndication\CategoriesDocument.cs (3)
52public void Save(XmlWriter writer) 67protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 72protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\CategoriesDocumentFormatter.cs (1)
34public abstract void WriteTo(XmlWriter writer);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
88internal void WriteAttributeExtensions(XmlWriter writer) 105internal void WriteElementExtensions(XmlWriter writer, Func<string, string, bool> shouldSkipElement = null)
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (2)
107protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 112protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (11)
96void IXmlSerializable.WriteXml(XmlWriter writer) 116public override void WriteTo(XmlWriter writer) 139internal void WriteItemContents(XmlWriter writer, SyndicationItem item) 182protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 189protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 804private static void WriteAlternateLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 817private void WriteCategory(XmlWriter writer, SyndicationCategory category) 833private void WriteFeed(XmlWriter writer) 996private void WriteItemContents(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 1166private static void WriteMediaEnclosure(XmlWriter writer, SyndicationLink link, Uri baseUri) 1190private void WritePerson(XmlWriter writer, string elementTag, SyndicationPerson person)
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (3)
111void IXmlSerializable.WriteXml(XmlWriter writer) 131public override void WriteTo(XmlWriter writer) 151private void WriteItem(XmlWriter writer)
System\ServiceModel\Syndication\ServiceDocument.cs (3)
61public void Save(XmlWriter writer) 81protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 86protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\ServiceDocumentFormatter.cs (9)
35public abstract void WriteTo(XmlWriter writer); 232protected static void WriteAttributeExtensions(XmlWriter writer, ServiceDocument document, string version) 242protected static void WriteAttributeExtensions(XmlWriter writer, Workspace workspace, string version) 252protected static void WriteAttributeExtensions(XmlWriter writer, ResourceCollectionInfo collection, string version) 262protected static void WriteAttributeExtensions(XmlWriter writer, CategoriesDocument categories, string version) 272protected static void WriteElementExtensions(XmlWriter writer, ServiceDocument document, string version) 282protected static void WriteElementExtensions(XmlWriter writer, Workspace workspace, string version) 292protected static void WriteElementExtensions(XmlWriter writer, ResourceCollectionInfo collection, string version) 302protected static void WriteElementExtensions(XmlWriter writer, CategoriesDocument categories, string version)
System\ServiceModel\Syndication\SyndicationCategory.cs (2)
64protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 69protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationContent.cs (2)
70public void WriteTo(XmlWriter writer, string outerElementName, string outerElementNamespace) 116protected abstract void WriteContentsTo(XmlWriter writer);
System\ServiceModel\Syndication\SyndicationElementExtension.cs (4)
177public void WriteTo(XmlWriter writer) 245public void WriteTo(XmlWriter writer) 309using (XmlWriter writer = XmlWriter.Create(stream))
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
129internal void WriteTo(XmlWriter writer, Func<string, string, bool> shouldSkipElement)
System\ServiceModel\Syndication\SyndicationFeed.cs (4)
449public void SaveAsAtom10(XmlWriter writer) 454public void SaveAsRss20(XmlWriter writer) 489protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 494protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (11)
59public abstract void WriteTo(XmlWriter writer); 306protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationFeed feed, string version) 316protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationItem item, string version) 326protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationCategory category, string version) 336protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationLink link, string version) 346protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationPerson person, string version) 356protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationFeed feed, string version) 366protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationItem item, string version) 376protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationCategory category, string version) 386protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationLink link, string version) 396protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationPerson person, string version)
System\ServiceModel\Syndication\SyndicationItem.cs (4)
204public void SaveAsAtom10(XmlWriter writer) 209public void SaveAsRss20(XmlWriter writer) 245protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 250protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (9)
39public abstract void WriteTo(XmlWriter writer); 134protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationItem item, string version) 139protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationCategory category, string version) 144protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationLink link, string version) 149protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationPerson person, string version) 154protected static void WriteElementExtensions(XmlWriter writer, SyndicationItem item, string version) 161protected void WriteElementExtensions(XmlWriter writer, SyndicationCategory category, string version) 166protected void WriteElementExtensions(XmlWriter writer, SyndicationLink link, string version) 171protected void WriteElementExtensions(XmlWriter writer, SyndicationPerson person, string version)
System\ServiceModel\Syndication\SyndicationLink.cs (2)
142protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 147protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationPerson.cs (2)
65protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 70protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\TextSyndicationContent.cs (1)
48protected override void WriteContentsTo(XmlWriter writer)
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
38protected override void WriteContentsTo(XmlWriter writer)
System\ServiceModel\Syndication\Workspace.cs (2)
64protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 69protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
140protected override void WriteContentsTo(XmlWriter writer)
System\ServiceModel\XmlBuffer.cs (1)
122public void WriteTo(int sectionIndex, XmlWriter writer)
System.Speech (10)
artifacts\obj\System.Speech\Debug\net10.0\System.Speech.notsupported.cs (10)
483public void WriteSrgs(System.Xml.XmlWriter srgsGrammar) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 489internal abstract void WriteSrgs(System.Xml.XmlWriter writer); 523internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 533internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 543internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 585internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 604internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 613internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 621internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } 630internal override void WriteSrgs(System.Xml.XmlWriter writer) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
339public void Write(XmlWriter writer)
System.Windows.Forms (2)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (2)
68XmlWriter xmlWriter = XmlWriter.Create(xmlStringBuilder);
System.Xaml (19)
System\Xaml\XamlObjectReader.cs (2)
599using (XmlWriter writer = XmlWriter.Create(sb, writerSettings))
System\Xaml\XamlServices.cs (9)
132using (var xw = XmlWriter.Create(sw, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 150using (var writer = XmlWriter.Create(fileName, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 160using (var writer = XmlWriter.Create(stream, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 170using (var xmlWriter = XmlWriter.Create(writer, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 177public static void Save(XmlWriter writer, object instance)
System\Xaml\XamlXmlWriter.cs (8)
23XmlWriter output; 57InitializeXamlXmlWriter(XmlWriter.Create(stream, new XmlWriterSettings { CloseOutput = true }), schemaContext, settings); 61InitializeXamlXmlWriter(XmlWriter.Create(stream), schemaContext, settings); 76InitializeXamlXmlWriter(XmlWriter.Create(textWriter, new XmlWriterSettings { CloseOutput = true }), schemaContext, settings); 80InitializeXamlXmlWriter(XmlWriter.Create(textWriter), schemaContext, settings); 84public XamlXmlWriter(XmlWriter xmlWriter, XamlSchemaContext schemaContext) 89public XamlXmlWriter(XmlWriter xmlWriter, XamlSchemaContext schemaContext, XamlXmlWriterSettings settings) 96void InitializeXamlXmlWriter(XmlWriter xmlWriter, XamlSchemaContext schemaContext, XamlXmlWriterSettings settings)
System.Xaml.Tests (1)
System\Xaml\XamlServicesTests.cs (1)
90Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((XmlWriter)null!, 1));
System.Xml (1)
System.Xml.cs (1)
238[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlWriter))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
166[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlWriter))]
xunit.console (2)
Utility\TransformFactory.cs (2)
74using (var writer = XmlWriter.Create(outputFileName, new XmlWriterSettings { Indent = true }))