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.Templates.Tests (2)
TemplateTestsBase.cs (2)
96using (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)
630using (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)
25internal XmlWriter ResultsWriter 64ResultsWriter = 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)
62public void Serialize(XmlWriter writer, object obj)
System\Windows\Annotations\Annotation.cs (1)
177public void WriteXml(XmlWriter writer)
System\Windows\Annotations\AnnotationResource.cs (1)
108public void WriteXml(XmlWriter writer)
System\Windows\Annotations\LocatorGroup.cs (1)
94public void WriteXml(XmlWriter writer)
System\Windows\Annotations\LocatorPartList.cs (1)
137public void WriteXml(XmlWriter writer)
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
951XmlWriter writer = editor.AppendChild(); 957XmlWriter writer = editor.InsertBefore();
System\Windows\Controls\AccessText.cs (1)
539internal static void SerializeCustom(XmlWriter xmlWriter, object o)
System\Windows\Data\XmlDataProvider.cs (1)
393public void WriteXml(XmlWriter writer)
System\Windows\Documents\TextRangeSerialization.cs (16)
31internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload) 56internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload, bool preserveTextElements) 188private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements) 333private static void WriteXamlTableCellRange(XmlWriter xmlWriter, ITextRange range, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool preserveTextElements) 414private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 534private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 599private static void WriteTableColumnsInformation(ITextRange range, Table table, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper) 643private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 722private static void WriteInheritablePropertiesForFlowDocument(DependencyObject context, XmlWriter xmlWriter, DependencyObject complexProperties) 763private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 828private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 907private static void WriteNoninheritableProperty(XmlWriter xmlWriter, DependencyProperty property, object propertyValue, Type propertyOwnerType, bool onlyAffected, DependencyObject complexProperties, object localValue) 947private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties) 1057private static void WriteComplexProperties(XmlWriter xmlWriter, DependencyObject complexProperties, Type elementType) 1112private static void WriteXamlAtomicElement(DependencyObject element, XmlWriter xmlWriter, bool reduceElement) 1147private 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)
47public XamlDesignerSerializationManager(XmlWriter xmlWriter) 83internal XmlWriter XmlWriter 113private XmlWriter _xmlWriter; //XmlWriter
System\Windows\Markup\XamlWriter.cs (1)
123public static void Save(object obj, XmlWriter xmlWriter)
ReachFramework (142)
Packaging\XpsFixedDocumentReaderWriter.cs (1)
1211internal System.Xml.XmlWriter XmlWriter
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
680internal System.Xml.XmlWriter XmlWriter
Packaging\XpsFixedPageReaderWriter.cs (7)
384XmlWriter XmlWriter { get; } 529public XmlWriter XmlWriter 576public XmlWriter ResourceDictionaryXmlWriter 1952private System.Xml.XmlWriter _pageXmlWriter; 1953private System.Xml.XmlWriter _resourceXmlWriter; 1954private System.Xml.XmlWriter _resourceDictionaryXmlWriter; 2007internal XmlWriter PageXmlWriter
Packaging\XPSSignatureDefinition.cs (1)
324WriteXML(XmlWriter writer)
PrintConfig\PrintCapabilitesWriter.cs (2)
37this._writer = XmlWriter.Create(new StreamWriter(stream, Encoding.UTF8), settings); 826private XmlWriter _writer;
Serialization\Manager\MetroSerializationManager.cs (1)
181XmlWriter
Serialization\Manager\NGCSerializationManager.cs (1)
271XmlWriter
Serialization\Manager\NGCSerializationManagerAsync.cs (1)
489XmlWriter
Serialization\Manager\NullPackagingPolicy.cs (15)
67XmlWriter 71XmlWriter xmlWriter = null; 84xmlWriter = _currentDSWriter as XmlWriter; 127XmlWriter 131XmlWriter xmlWriter = null; 148xmlWriter = _currentFDWriter as XmlWriter; 196XmlWriter 200XmlWriter xmlWriter = null; 775XmlWriter 821XmlWriter 941XmlWriter _currentFDWriter; 944XmlWriter _currentFPWriter; 990System.Xml.XmlWriter _pageXmlWriter; 993System.Xml.XmlWriter _resourceXmlWriter; 996System.Xml.XmlWriter _resourceDictionaryXmlWriter;
Serialization\Manager\ReachDocumentPageSerializer.cs (2)
195private void WriteAttribute(XmlWriter writer, string name, object value) 205XmlWriter
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (2)
101XmlWriter 279private void WriteAttribute(XmlWriter writer, string name, object value)
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
112XmlWriter
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
150XmlWriter
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
284XmlWriter
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
324XmlWriter
Serialization\Manager\ReachFixedPageSerializer.cs (3)
213XmlWriter pageWriter = ((XpsSerializationManager)SerializationManager). 216XmlWriter resWriter = ((XpsSerializationManager)SerializationManager). 360XmlWriter
Serialization\Manager\ReachFixedPageSerializerAsync.cs (3)
332XmlWriter 390XmlWriter pageWriter = ((XpsSerializationManagerAsync)SerializationManager). 393XmlWriter resWriter = ((XpsSerializationManagerAsync)SerializationManager).
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (1)
163XmlWriter
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (1)
210XmlWriter
Serialization\Manager\ReachSerializationUtils.cs (20)
379XmlWriter 383XmlWriter xmlWriter = null; 426XmlWriter xmlWriter 455XmlWriter 459XmlWriter xmlWriter = null; 508XmlWriter xmlWriter 545XmlWriter 549XmlWriter xmlWriter = null; 618XmlWriter xmlWriter 720XmlWriter _documentSequenceXmlWriter; 723XmlWriter _documentXmlWriter; 726XmlWriter _pageXmlWriter; 749XmlWriter writer, 950XmlWriter writer = LinkXmlWriter; 1008private void WriteAttribute(XmlWriter writer, string name, object value) 1036XmlWriter 1049XmlWriter 1078XmlWriter writer = this.XmlWriter; // guarantee page is created 1090private XmlWriter _linkXmlWriter; 1092private XmlWriter _serializerXmlWriter;
Serialization\Manager\ReachSerializer.cs (2)
358XmlWriter 405XmlWriter _xmlWriter;
Serialization\Manager\ReachSerializerAsync.cs (2)
465XmlWriter 501XmlWriter _xmlWriter;
Serialization\Manager\ReachVisualSerializer.cs (7)
51XmlWriter pageWriter = SerializationManager. 54XmlWriter resWriter = SerializationManager. 82XmlWriter resWriter, 83XmlWriter bodyWriter 144XmlWriter 187XmlWriter pageWriter = SerializationManager. 190XmlWriter resWriter = SerializationManager.
Serialization\Manager\ReachVisualSerializerAsync.cs (7)
81XmlWriter pageWriter = ((PackageSerializationManager)manager). 84XmlWriter resWriter = ((PackageSerializationManager)manager). 111XmlWriter resWriter, 112XmlWriter bodyWriter 194XmlWriter 234XmlWriter pageWriter = ((PackageSerializationManager)manager). 237XmlWriter resWriter = ((PackageSerializationManager)manager).
Serialization\Manager\XpsOMDocumentPageSerializer.cs (2)
223XmlWriter writer, 236XmlWriter
Serialization\Manager\XpsOMDocumentPageSerializerAsync.cs (1)
111XmlWriter
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
192XmlWriter pageWriter = SerializationManager. 195XmlWriter resWriter = SerializationManager. 318XmlWriter
Serialization\Manager\XpsOMFixedPageSerializerAsync.cs (1)
145XmlWriter
Serialization\Manager\XpsOMHierarchySimulator.cs (4)
28XmlWriter 43XmlWriter xmlWriter 67XmlWriter 101XmlWriter xmlWriter
Serialization\Manager\XpsOMPackagingPolicy.cs (9)
191XmlWriter 217XmlWriter 238XmlWriter 241XmlWriter xmlWriter = null; 339XmlWriter 351XmlWriter 961private XmlWriter _currentPageContentXmlWriter; 962private XmlWriter _currentResourceXmlWriter; 963private XmlWriter _currentFixedPageXmlWriter;
Serialization\Manager\XpsOMSerializationManager.cs (3)
60XmlWriter pageWriter = null; 293internal override Xml.XmlWriter AcquireXmlWriter(Type writerType) 295XmlWriter xmlWriter = null;
Serialization\Manager\XpsOMSerializationManagerAsync.cs (1)
493private XmlWriter _currentPageXmlWriter;
Serialization\Manager\XpsPackagingPolicy.cs (16)
220XmlWriter 238XmlWriter 256XmlWriter 311XmlWriter 321XmlWriter 549XmlWriter 553XmlWriter xmlWriter = null; 617XmlWriter 621XmlWriter xmlWriter = null; 692XmlWriter 696XmlWriter xmlWriter = null; 1278XmlWriter 1310XmlWriter 1491XmlWriter _currentDSWriter; 1494XmlWriter _currentFDWriter; 1497XmlWriter _currentFPWriter;
Serialization\Manager\XpsSerializationManager.cs (5)
90XmlWriter pageXmlWriter = null; 420XmlWriter 425XmlWriter xmlWriter = null; 1218XmlWriter resWriter, 1219XmlWriter bodyWriter,
Serialization\Manager\XpsSerializationManagerAsync.cs (1)
555XmlWriter _currentPageXmlWriter;
Serialization\VisualSerializer.cs (6)
54internal VisualSerializer(System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, PackageSerializationManager manager) 681XmlWriter oldwriter = _writer; 840protected System.Xml.XmlWriter _writer; 841protected System.Xml.XmlWriter _resWriter; 842protected System.Xml.XmlWriter _bodyWriter;
Serialization\VisualTreeFlattener.cs (6)
178internal override XmlWriter AcquireXmlWriter(Type writerType) 358internal VisualTreeFlattener(System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, PackageSerializationManager manager, Size pageSize, TreeWalkProgress treeWalkProgress) 762internal static void SaveAsXml(Visual visual, System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, String fileName) 840internal static 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)
1027protected 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)
461using (XmlWriter writer = XmlWriter.Create(s, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 })) 488internal 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)
87void IXmlSerializable.WriteXml(XmlWriter writer) 104public override void WriteTo(XmlWriter writer) 196internal static void WriteCategory(XmlWriter writer, SyndicationCategory category, string version) 367internal static void WriteContentTo(XmlWriter writer, string elementName, SyndicationContent content) 372internal static void WriteElement(XmlWriter writer, string elementName, string value) 380internal void WriteFeedAuthorsTo(XmlWriter writer, Collection<SyndicationPerson> authors) 389internal void WriteFeedContributorsTo(XmlWriter writer, Collection<SyndicationPerson> contributors) 398internal static void WriteFeedLastUpdatedTimeTo(XmlWriter writer, DateTimeOffset lastUpdatedTime, bool isRequired) 410internal void WriteItemAuthorsTo(XmlWriter writer, Collection<SyndicationPerson> authors) 419internal void WriteItemContents(XmlWriter dictWriter, SyndicationItem item) 424internal void WriteItemContributorsTo(XmlWriter writer, Collection<SyndicationPerson> contributors) 433internal static void WriteItemLastUpdatedTimeTo(XmlWriter writer, DateTimeOffset lastUpdatedTime) 444internal static void WriteLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 503protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 510protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 1067private void WriteCategoriesTo(XmlWriter writer, Collection<SyndicationCategory> categories) 1075private void WriteFeed(XmlWriter writer) 1085private void WriteFeedTo(XmlWriter writer, SyndicationFeed feed, bool isSourceFeed) 1137private void WriteItemContents(XmlWriter dictWriter, SyndicationItem item, Uri feedBaseUri) 1177private void WritePersonTo(XmlWriter writer, SyndicationPerson p, string elementName)
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (3)
79void IXmlSerializable.WriteXml(XmlWriter writer) 96public override void WriteTo(XmlWriter writer) 113private void WriteItem(XmlWriter writer)
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (3)
73void IXmlSerializable.WriteXml(XmlWriter writer) 97public override void WriteTo(XmlWriter writer) 156private void WriteDocument(XmlWriter writer)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (11)
62void IXmlSerializable.WriteXml(XmlWriter writer) 87public override void WriteTo(XmlWriter writer) 118internal static void WriteCategoriesInnerXml(XmlWriter writer, CategoriesDocument categories, Uri baseUri, string version) 288private static void WriteCategories(XmlWriter writer, CategoriesDocument categories, Uri baseUri, string version) 295private static void WriteInlineCategoriesContent(XmlWriter writer, InlineCategoriesDocument categories, string version) 314private static void WriteReferencedCategoriesContent(XmlWriter writer, ReferencedCategoriesDocument categories, string version) 324private static void WriteXmlBase(XmlWriter writer, Uri baseUri) 329private static void WriteXmlLang(XmlWriter writer, string lang) 548private void WriteCollection(XmlWriter writer, ResourceCollectionInfo collection, Uri baseUri) 575private void WriteDocument(XmlWriter writer) 597private 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)
31public abstract void WriteTo(XmlWriter writer);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
85internal void WriteAttributeExtensions(XmlWriter writer) 99internal void WriteElementExtensions(XmlWriter writer, Func<string, string, bool> shouldSkipElement = null)
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (2)
101protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 106protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (11)
87void IXmlSerializable.WriteXml(XmlWriter writer) 104public override void WriteTo(XmlWriter writer) 124internal void WriteItemContents(XmlWriter writer, SyndicationItem item) 155protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 162protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 777private static void WriteAlternateLink(XmlWriter writer, SyndicationLink link, Uri baseUri) 790private void WriteCategory(XmlWriter writer, SyndicationCategory category) 806private void WriteFeed(XmlWriter writer) 969private void WriteItemContents(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 1139private static void WriteMediaEnclosure(XmlWriter writer, SyndicationLink link, Uri baseUri) 1163private void WritePerson(XmlWriter writer, string elementTag, SyndicationPerson person)
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (3)
102void IXmlSerializable.WriteXml(XmlWriter writer) 119public override void WriteTo(XmlWriter writer) 136private 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)
32public abstract void WriteTo(XmlWriter writer); 181protected static void WriteAttributeExtensions(XmlWriter writer, ServiceDocument document, string version) 188protected static void WriteAttributeExtensions(XmlWriter writer, Workspace workspace, string version) 195protected static void WriteAttributeExtensions(XmlWriter writer, ResourceCollectionInfo collection, string version) 202protected static void WriteAttributeExtensions(XmlWriter writer, CategoriesDocument categories, string version) 209protected static void WriteElementExtensions(XmlWriter writer, ServiceDocument document, string version) 216protected static void WriteElementExtensions(XmlWriter writer, Workspace workspace, string version) 223protected static void WriteElementExtensions(XmlWriter writer, ResourceCollectionInfo collection, string version) 230protected static void WriteElementExtensions(XmlWriter writer, CategoriesDocument categories, string version)
System\ServiceModel\Syndication\SyndicationCategory.cs (2)
61protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 66protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationContent.cs (2)
70public void WriteTo(XmlWriter writer, string outerElementName, string outerElementNamespace) 110protected abstract void WriteContentsTo(XmlWriter writer);
System\ServiceModel\Syndication\SyndicationElementExtension.cs (4)
162public void WriteTo(XmlWriter writer) 227public void WriteTo(XmlWriter writer) 291using (XmlWriter writer = XmlWriter.Create(stream))
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
114internal void WriteTo(XmlWriter writer, Func<string, string, bool> shouldSkipElement)
System\ServiceModel\Syndication\SyndicationFeed.cs (4)
443public void SaveAsAtom10(XmlWriter writer) 448public void SaveAsRss20(XmlWriter writer) 483protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 488protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (11)
56public abstract void WriteTo(XmlWriter writer); 237protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationFeed feed, string version) 244protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationItem item, string version) 251protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationCategory category, string version) 258protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationLink link, string version) 265protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationPerson person, string version) 272protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationFeed feed, string version) 279protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationItem item, string version) 286protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationCategory category, string version) 293protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationLink link, string version) 300protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationPerson person, string version)
System\ServiceModel\Syndication\SyndicationItem.cs (4)
195public void SaveAsAtom10(XmlWriter writer) 200public void SaveAsRss20(XmlWriter writer) 236protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 241protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (9)
36public abstract void WriteTo(XmlWriter writer); 128protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationItem item, string version) 133protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationCategory category, string version) 138protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationLink link, string version) 143protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationPerson person, string version) 148protected static void WriteElementExtensions(XmlWriter writer, SyndicationItem item, string version) 155protected void WriteElementExtensions(XmlWriter writer, SyndicationCategory category, string version) 160protected void WriteElementExtensions(XmlWriter writer, SyndicationLink link, string version) 165protected void WriteElementExtensions(XmlWriter writer, SyndicationPerson person, string version)
System\ServiceModel\Syndication\SyndicationLink.cs (2)
139protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 144protected internal virtual void WriteElementExtensions(XmlWriter writer, string version)
System\ServiceModel\Syndication\SyndicationPerson.cs (2)
62protected internal virtual void WriteAttributeExtensions(XmlWriter writer, string version) 67protected 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)
35protected 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)
134protected 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)
598using (XmlWriter writer = XmlWriter.Create(sb, writerSettings))
System\Xaml\XamlServices.cs (9)
131using (var xw = XmlWriter.Create(sw, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 149using (var writer = XmlWriter.Create(fileName, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 159using (var writer = XmlWriter.Create(stream, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 169using (var xmlWriter = XmlWriter.Create(writer, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 176public static void Save(XmlWriter writer, object instance)
System\Xaml\XamlXmlWriter.cs (8)
22private XmlWriter output; 55InitializeXamlXmlWriter(XmlWriter.Create(stream, new XmlWriterSettings { CloseOutput = true }), schemaContext, settings); 59InitializeXamlXmlWriter(XmlWriter.Create(stream), schemaContext, settings); 74InitializeXamlXmlWriter(XmlWriter.Create(textWriter, new XmlWriterSettings { CloseOutput = true }), schemaContext, settings); 78InitializeXamlXmlWriter(XmlWriter.Create(textWriter), schemaContext, settings); 82public XamlXmlWriter(XmlWriter xmlWriter, XamlSchemaContext schemaContext) 87public XamlXmlWriter(XmlWriter xmlWriter, XamlSchemaContext schemaContext, XamlXmlWriterSettings settings) 94private void 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 }))