16 types derived from XmlWriter
System.Data.Common (1)
System.Private.DataContractSerialization (2)
System.Private.Xml (12)
System.Private.Xml.Linq (1)
928 references to XmlWriter
aspire (2)
Aspire.Dashboard (2)
Aspire.Templates.Tests (2)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
Extensibility.MessageEncoder.IntegrationTests (4)
illink (6)
ILLink.Tasks (2)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml (25)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (11)
Microsoft.Build (3)
Microsoft.Build.Engine.UnitTests (2)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.CodeAnalysis.SemanticSearch.Extensions (2)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.DotNet.ApiCompatibility (2)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.DotNet.XliffTasks (2)
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Microsoft.Maui.Resizetizer (6)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (10)
netstandard (1)
PresentationFramework (34)
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)
ReachFramework (142)
Serialization\Manager\MetroSerializationManager.cs (1)
181XmlWriter
Serialization\Manager\NGCSerializationManager.cs (1)
271XmlWriter
Serialization\Manager\NGCSerializationManagerAsync.cs (1)
489XmlWriter
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\ReachIDocumentPaginatorSerializer.cs (1)
163XmlWriter
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (1)
210XmlWriter
Serialization\Manager\XpsOMDocumentPageSerializerAsync.cs (1)
111XmlWriter
Serialization\Manager\XpsOMFixedPageSerializerAsync.cs (1)
145XmlWriter
Roslyn.Test.PdbUtilities (2)
System.Configuration.ConfigurationManager (12)
System.Data.Common (70)
System\Data\DataSet.cs (13)
1964/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to an <see cref='XmlWriter'/> object.</summary>
1965/// <param name="writer">The <see cref='XmlWriter'/> object with which to write.</param>
1968public void WriteXmlSchema(XmlWriter? writer) => WriteXmlSchema(writer, SchemaFormat.Public, null);
1970/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to an <see cref='XmlWriter'/> object.</summary>
1971/// <param name="writer">The <see cref='XmlWriter'/> object with which to write.</param>
1975public void WriteXmlSchema(XmlWriter? writer, Converter<Type, string> multipleTargetConverter)
2031private void WriteXmlSchema(XmlWriter? writer, SchemaFormat schemaFormat, Converter<Type, string>? multipleTargetConverter)
2901public void WriteXml(XmlWriter? writer) => WriteXml(writer, XmlWriteMode.IgnoreSchema);
2938public void WriteXml(XmlWriter? writer, XmlWriteMode mode)
3528XmlWriter writer = new XmlTextWriter(stream, null);
3539private static void WriteXmlSchema(DataSet ds, XmlWriter writer)
3588void IXmlSerializable.WriteXml(XmlWriter writer)
3600private 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);
6770void IXmlSerializable.WriteXml(XmlWriter writer)
6782private void WriteXmlInternal(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.IO.Packaging (9)
System.Private.DataContractSerialization (26)
System.Private.Xml (185)
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\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.Runtime.Serialization.Schema (1)
System.Security.Cryptography.Xml (1)
System.ServiceModel.Primitives (71)
System.ServiceModel.Primitives.Tests (5)
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\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\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\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\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\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.Speech (10)
System.Windows.Forms (2)
System.Xaml (19)
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.Xml (1)
System.Xml.ReaderWriter (1)
xunit.console (2)