11 [global::__DynamicallyInvokable]
14 private char[] writeNodeBuffer;
16 private const int WriteNodeBufferSize = 1024;
21 [global::__DynamicallyInvokable]
24 [global::__DynamicallyInvokable]
34 [global::__DynamicallyInvokable]
37 [global::__DynamicallyInvokable]
50 [global::__DynamicallyInvokable]
53 [global::__DynamicallyInvokable]
63 [global::__DynamicallyInvokable]
66 [global::__DynamicallyInvokable]
76 [global::__DynamicallyInvokable]
83 [global::__DynamicallyInvokable]
89 [global::__DynamicallyInvokable]
100 [global::__DynamicallyInvokable]
101 public abstract void WriteDocType(
string name,
string pubid,
string sysid,
string subset);
109 [global::__DynamicallyInvokable]
122 [global::__DynamicallyInvokable]
123 public abstract void WriteStartElement(
string prefix,
string localName,
string ns);
130 [global::__DynamicallyInvokable]
139 [global::__DynamicallyInvokable]
144 [global::__DynamicallyInvokable]
154 [global::__DynamicallyInvokable]
168 [global::__DynamicallyInvokable]
185 [global::__DynamicallyInvokable]
198 [global::__DynamicallyInvokable]
210 [global::__DynamicallyInvokable]
218 [global::__DynamicallyInvokable]
226 [global::__DynamicallyInvokable]
233 [global::__DynamicallyInvokable]
240 [global::__DynamicallyInvokable]
249 [global::__DynamicallyInvokable]
257 [global::__DynamicallyInvokable]
264 [global::__DynamicallyInvokable]
271 [global::__DynamicallyInvokable]
278 [global::__DynamicallyInvokable]
286 [global::__DynamicallyInvokable]
299 [global::__DynamicallyInvokable]
300 public abstract void WriteChars(
char[] buffer,
int index,
int count);
311 [global::__DynamicallyInvokable]
312 public abstract void WriteRaw(
char[] buffer,
int index,
int count);
319 [global::__DynamicallyInvokable]
320 public abstract void WriteRaw(
string data);
331 [global::__DynamicallyInvokable]
332 public abstract void WriteBase64(
byte[] buffer,
int index,
int count);
344 [global::__DynamicallyInvokable]
345 public virtual void WriteBinHex(
byte[] buffer,
int index,
int count)
347 BinHexEncoder.Encode(buffer, index, count,
this);
359 [global::__DynamicallyInvokable]
360 public abstract void Flush();
368 [global::__DynamicallyInvokable]
376 [global::__DynamicallyInvokable]
379 if (name ==
null || name.Length == 0)
391 [global::__DynamicallyInvokable]
404 [global::__DynamicallyInvokable]
407 if (ns !=
null && ns.Length > 0)
427 [global::__DynamicallyInvokable]
434 WriteString(XmlUntypedConverter.Untyped.ToString(value,
null));
441 [global::__DynamicallyInvokable]
454 [global::__DynamicallyInvokable]
472 [global::__DynamicallyInvokable]
489 [global::__DynamicallyInvokable]
499 [global::__DynamicallyInvokable]
509 [global::__DynamicallyInvokable]
519 [global::__DynamicallyInvokable]
529 [global::__DynamicallyInvokable]
543 [global::__DynamicallyInvokable]
561 throw new XmlException(
"Xml_InvalidPosition",
string.Empty);
565 if (!defattr && reader.IsDefaultInternal)
595 [global::__DynamicallyInvokable]
617 if (canReadValueChunk)
619 if (writeNodeBuffer ==
null)
621 writeNodeBuffer =
new char[1024];
624 while ((count = reader.
ReadValueChunk(writeNodeBuffer, 0, 1024)) > 0)
671 if (navigator ==
null)
676 navigator = navigator.Clone();
689 if (defattr || schemaInfo ==
null || !schemaInfo.
IsDefault)
701 WriteLocalNamespaces(navigator);
768 [global::__DynamicallyInvokable]
781 [global::__DynamicallyInvokable]
785 if (value !=
null && value.Length != 0)
800 [global::__DynamicallyInvokable]
804 if (value !=
null && value.Length != 0)
813 [global::__DynamicallyInvokable]
823 [global::__DynamicallyInvokable]
824 protected virtual void Dispose(
bool disposing)
835 string value = nsNav.
Value;
838 WriteLocalNamespaces(nsNav);
840 if (localName.Length == 0)
856 return Create(outputFileName,
null);
866 if (settings ==
null)
870 return settings.CreateWriter(outputFileName);
877 [global::__DynamicallyInvokable]
880 return Create(output,
null);
888 [global::__DynamicallyInvokable]
891 if (settings ==
null)
895 return settings.CreateWriter(output);
902 [global::__DynamicallyInvokable]
905 return Create(output,
null);
913 [global::__DynamicallyInvokable]
916 if (settings ==
null)
920 return settings.CreateWriter(output);
927 [global::__DynamicallyInvokable]
930 return Create(output,
null);
938 [global::__DynamicallyInvokable]
941 if (settings ==
null)
956 [global::__DynamicallyInvokable]
959 return Create(output,
null);
967 [global::__DynamicallyInvokable]
970 if (settings ==
null)
974 return settings.CreateWriter(output);
981 [global::__DynamicallyInvokable]
992 [global::__DynamicallyInvokable]
1002 [global::__DynamicallyInvokable]
1016 [global::__DynamicallyInvokable]
1029 [global::__DynamicallyInvokable]
1039 [global::__DynamicallyInvokable]
1049 [global::__DynamicallyInvokable]
1063 [global::__DynamicallyInvokable]
1067 if (task.IsSuccess())
1071 return WriteAttributeStringAsyncHelper(task, value);
1074 private async
Task WriteAttributeStringAsyncHelper(
Task task,
string value)
1088 [global::__DynamicallyInvokable]
1098 [global::__DynamicallyInvokable]
1109 [global::__DynamicallyInvokable]
1120 [global::__DynamicallyInvokable]
1132 [global::__DynamicallyInvokable]
1143 [global::__DynamicallyInvokable]
1154 [global::__DynamicallyInvokable]
1165 [global::__DynamicallyInvokable]
1176 [global::__DynamicallyInvokable]
1188 [global::__DynamicallyInvokable]
1201 [global::__DynamicallyInvokable]
1214 [global::__DynamicallyInvokable]
1225 [global::__DynamicallyInvokable]
1238 [global::__DynamicallyInvokable]
1251 [global::__DynamicallyInvokable]
1254 return BinHexEncoder.EncodeAsync(buffer, index, count,
this);
1261 [global::__DynamicallyInvokable]
1272 [global::__DynamicallyInvokable]
1275 if (name ==
null || name.Length == 0)
1287 [global::__DynamicallyInvokable]
1299 [global::__DynamicallyInvokable]
1302 if (ns !=
null && ns.Length > 0)
1322 [global::__DynamicallyInvokable]
1340 throw new XmlException(
"Xml_InvalidPosition",
string.Empty);
1344 if (!defattr && reader.IsDefaultInternal)
1372 [global::__DynamicallyInvokable]
1381 return WriteNodeAsync_CallAsyncReader(reader, defattr);
1383 return WriteNodeAsync_CallSyncReader(reader, defattr);
1386 internal async
Task WriteNodeAsync_CallSyncReader(
XmlReader reader,
bool defattr)
1405 if (writeNodeBuffer ==
null)
1407 writeNodeBuffer =
new char[1024];
1410 while ((read = reader.
ReadValueChunk(writeNodeBuffer, 0, 1024)) > 0)
1448 internal async
Task WriteNodeAsync_CallAsyncReader(XmlReader reader,
bool defattr)
1450 bool canReadChunk = reader.CanReadValueChunk;
1451 int d = (reader.NodeType ==
XmlNodeType.None) ? (-1) : reader.Depth;
1454 switch (reader.NodeType)
1459 if (reader.IsEmptyElement)
1467 if (writeNodeBuffer ==
null)
1469 writeNodeBuffer =
new char[1024];
1472 while ((read = await reader.ReadValueChunkAsync(writeNodeBuffer, 0, 1024).ConfigureAwait(continueOnCapturedContext:
false)) > 0)
1479 await
WriteStringAsync(await reader.GetValueAsync().ConfigureAwait(continueOnCapturedContext:
false)).ConfigureAwait(continueOnCapturedContext:
false);
1484 await
WriteWhitespaceAsync(await reader.GetValueAsync().ConfigureAwait(continueOnCapturedContext:
false)).ConfigureAwait(continueOnCapturedContext:
false);
1497 await
WriteDocTypeAsync(reader.Name, reader.GetAttribute(
"PUBLIC"), reader.GetAttribute(
"SYSTEM"), reader.Value).ConfigureAwait(continueOnCapturedContext:
false);
1507 while (await reader.ReadAsync().ConfigureAwait(continueOnCapturedContext:
false) && (d < reader.Depth || (d == reader.Depth && reader.NodeType ==
XmlNodeType.EndElement)));
1519 if (navigator ==
null)
1524 navigator = navigator.Clone();
1527 bool mayHaveChildren =
false;
1537 if (defattr || schemaInfo ==
null || !schemaInfo.
IsDefault)
1549 await WriteLocalNamespacesAsync(navigator).
ConfigureAwait(continueOnCapturedContext:
false);
1552 mayHaveChildren =
true;
1562 mayHaveChildren =
true;
1571 if (mayHaveChildren)
1618 [global::__DynamicallyInvokable]
1622 if (value !=
null && value.Length != 0)
1632 string ns = nsNav.
Value;
1635 await WriteLocalNamespacesAsync(nsNav).
ConfigureAwait(continueOnCapturedContext:
false);
1637 if (prefix.Length == 0)
1648 [global::__DynamicallyInvokable]
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
WriteState
Specifies the state of the T:System.Xml.XmlWriter.
virtual void WriteValue(DateTime value)
Writes a T:System.DateTime value.
bool Async
Gets or sets whether asynchronous T:System.Xml.XmlReader methods can be used on a particular T:System...
abstract bool MoveToNextNamespace(XPathNamespaceScope namespaceScope)
When overridden in a derived class, moves the T:System.Xml.XPath.XPathNavigator to the next namespace...
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
XPathNamespaceScope
Defines the namespace scope.
abstract string NamespaceURI
When overridden in a derived class, gets the namespace URI of the current node.
static XmlWriter Create(XmlWriter output, XmlWriterSettings settings)
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Xml.XmlWriter and T:System...
static XmlWriter Create(Stream output)
Creates a new T:System.Xml.XmlWriter instance using the specified stream.
XmlWriter()
Initializes a new instance of the T:System.Xml.XmlWriter class.
Defines the post-schema-validation infoset of a validated XML node.
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Configures an awaiter used to await this T:System.Threading.Tasks.Task`1.
abstract void WriteBase64(byte[] buffer, int index, int count)
When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the r...
void Dispose()
Releases all resources used by the current instance of the T:System.Xml.XmlWriter class.
abstract void WriteChars(char[] buffer, int index, int count)
When overridden in a derived class, writes text one buffer at a time.
abstract bool MoveToElement()
When overridden in a derived class, moves to the element that contains the current attribute node.
virtual void WriteBinHex(byte[] buffer, int index, int count)
When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the r...
void WriteAttributeString(string localName, string value)
When overridden in a derived class, writes out the attribute with the specified local name and value.
abstract string LocalName
When overridden in a derived class, gets the local name of the current node.
static XmlWriter Create(string outputFileName)
Creates a new T:System.Xml.XmlWriter instance using the specified filename.
abstract void WriteStartDocument()
When overridden in a derived class, writes the XML declaration with the version "1....
virtual void WriteValue(bool value)
Writes a T:System.Boolean value.
Implements a T:System.IO.TextWriter for writing information to a string. The information is stored in...
static XmlWriter Create(StringBuilder output, XmlWriterSettings settings)
Creates a new T:System.Xml.XmlWriter instance using the T:System.Text.StringBuilder and T:System....
abstract bool MoveToNext()
When overridden in a derived class, moves the T:System.Xml.XPath.XPathNavigator to the next sibling n...
virtual Task WriteFullEndElementAsync()
Asynchronously closes one element and pops the corresponding namespace scope.
virtual Task WriteProcessingInstructionAsync(string name, string text)
Asynchronously writes out a processing instruction with a space between the name and text as follows:...
void WriteStartElement(string localName)
When overridden in a derived class, writes out a start tag with the specified local name.
void WriteElementString(string localName, string ns, string value)
Writes an element with the specified local name, namespace URI, and value.
static XmlWriter Create(XmlWriter output)
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Xml.XmlWriter object.
abstract bool MoveToNextAttribute()
When overridden in a derived class, moves the T:System.Xml.XPath.XPathNavigator to the next attribute...
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
virtual void WriteValue(DateTimeOffset value)
Writes a T:System.DateTimeOffset value.
virtual void WriteValue(decimal value)
Writes a T:System.Decimal value.
virtual void WriteValue(long value)
Writes a T:System.Int64 value.
virtual void Dispose(bool disposing)
Releases the unmanaged resources used by the T:System.Xml.XmlWriter and optionally releases the manag...
abstract void WriteEndAttribute()
When overridden in a derived class, closes the previous M:System.Xml.XmlWriter.WriteStartAttribute(Sy...
static string ToString(bool value)
Converts the T:System.Boolean to a T:System.String.
abstract string NamespaceURI
When overridden in a derived class, gets the namespace URI (as defined in the W3C Namespace specifica...
void WriteStartAttribute(string localName, string ns)
Writes the start of an attribute with the specified local name and namespace URI.
abstract void WriteWhitespace(string ws)
When overridden in a derived class, writes out the given white space.
virtual void WriteQualifiedName(string localName, string ns)
When overridden in a derived class, writes out the namespace-qualified name. This method looks up the...
virtual void WriteNode(XPathNavigator navigator, bool defattr)
Copies everything from the T:System.Xml.XPath.XPathNavigator object to the writer....
Represents an instant in time, typically expressed as a date and time of day. To browse the ....
XmlNodeType
Specifies the type of node.
virtual Task WriteCommentAsync(string text)
Asynchronously writes out a comment <!–...–> containing the specified text.
abstract void WriteString(string text)
When overridden in a derived class, writes the given text content.
void WriteElementString(string prefix, string localName, string ns, string value)
Writes an element with the specified prefix, local name, namespace URI, and value.
virtual string XmlLang
When overridden in a derived class, gets the current xml:lang scope.
abstract void WriteEndDocument()
When overridden in a derived class, closes any open elements or attributes and puts the writer back i...
virtual Task FlushAsync()
Asynchronously flushes whatever is in the buffer to the underlying streams and also flushes the under...
virtual Task WriteStartDocumentAsync(bool standalone)
Asynchronously writes the XML declaration with the version "1.0" and the standalone attribute.
virtual async Task WriteQualifiedNameAsync(string localName, string ns)
Asynchronously writes out the namespace-qualified name. This method looks up the prefix that is in sc...
XPathNodeType
Defines the XPath node types that can be returned from the T:System.Xml.XPath.XPathNavigator class.
static XmlWriter Create(StringBuilder output)
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Text.StringBuilder.
void WriteAttributeString(string prefix, string localName, string ns, string value)
When overridden in a derived class, writes out the attribute with the specified prefix,...
abstract string LookupPrefix(string ns)
When overridden in a derived class, returns the closest prefix defined in the current namespace scope...
abstract XmlNodeType NodeType
When overridden in a derived class, gets the type of the current node.
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files t...
virtual void WriteNmToken(string name)
When overridden in a derived class, writes out the specified name, ensuring it is a valid NmToken acc...
abstract XPathNodeType NodeType
When overridden in a derived class, gets the T:System.Xml.XPath.XPathNodeType of the current node.
Represents a reader that provides fast, noncached, forward-only access to XML data....
virtual Task WriteRawAsync(char[] buffer, int index, int count)
Asynchronously writes raw markup manually from a character buffer.
abstract void Flush()
When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and a...
abstract bool MoveToFirstAttribute()
When overridden in a derived class, moves to the first attribute.
virtual string Name
When overridden in a derived class, gets the qualified name of the current node.
abstract string Prefix
When overridden in a derived class, gets the namespace prefix associated with the current node.
void WriteStartAttribute(string localName)
Writes the start of an attribute with the specified local name.
virtual Task WriteCharEntityAsync(char ch)
Asynchronously forces the generation of a character entity for the specified Unicode character value.
virtual void WriteValue(string value)
Writes a T:System.String value.
virtual Task WriteStartElementAsync(string prefix, string localName, string ns)
Asynchronously writes the specified start tag and associates it with the given namespace and prefix.
virtual Task WriteCDataAsync(string text)
Asynchronously writes out a <![CDATA[...]]> block containing the specified text.
abstract void WriteFullEndElement()
When overridden in a derived class, closes one element and pops the corresponding namespace scope.
abstract int Depth
When overridden in a derived class, gets the depth of the current node in the XML document.
abstract bool MoveToFirstNamespace(XPathNamespaceScope namespaceScope)
When overridden in a derived class, moves the T:System.Xml.XPath.XPathNavigator to the first namespac...
abstract void WriteCharEntity(char ch)
When overridden in a derived class, forces the generation of a character entity for the specified Uni...
Represents a writer that can write a sequential series of characters. This class is abstract.
virtual Task WriteRawAsync(string data)
Asynchronously writes raw markup manually from a string.
abstract bool IsEmptyElement
When overridden in a derived class, gets a value indicating whether the current node is an empty elem...
virtual Task WriteStringAsync(string text)
Asynchronously writes the given text content.
virtual XmlReaderSettings Settings
Gets the T:System.Xml.XmlReaderSettings object used to create this T:System.Xml.XmlReader instance.
Task WriteAttributeStringAsync(string prefix, string localName, string ns, string value)
Asynchronously writes out the attribute with the specified prefix, local name, namespace URI,...
abstract void WriteCData(string text)
When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text.
virtual Task WriteBase64Async(byte[] buffer, int index, int count)
Asynchronously encodes the specified binary bytes as Base64 and writes out the resulting text.
abstract void WriteDocType(string name, string pubid, string sysid, string subset)
When overridden in a derived class, writes the DOCTYPE declaration with the specified name and option...
virtual Task WriteNameAsync(string name)
Asynchronously writes out the specified name, ensuring it is a valid name according to the W3C XML 1....
virtual int ReadValueChunk(char[] buffer, int index, int count)
Reads large streams of text embedded in an XML document.
abstract void WriteEndElement()
When overridden in a derived class, closes one element and pops the corresponding namespace scope.
static readonly TimeSpan Zero
Represents the zero T:System.TimeSpan value. This field is read-only.
void WriteAttributeString(string localName, string ns, string value)
When overridden in a derived class, writes an attribute with the specified local name,...
virtual Task WriteWhitespaceAsync(string ws)
Asynchronously writes out the given white space.
virtual bool CanReadValueChunk
Gets a value indicating whether the T:System.Xml.XmlReader implements the M:System....
abstract bool MoveToNextAttribute()
When overridden in a derived class, moves to the next attribute.
virtual void WriteValue(object value)
Writes the object value.
Specifies a set of features to support on the T:System.Xml.XmlWriter object created by the Overload:S...
static string VerifyNMTOKEN(string name)
Verifies that the string is a valid NMTOKEN according to the W3C XML Schema Part2: Datatypes recommen...
static XmlWriter Create(Stream output, XmlWriterSettings settings)
Creates a new T:System.Xml.XmlWriter instance using the stream and T:System.Xml.XmlWriterSettings obj...
Represents a mutable string of characters. This class cannot be inherited.To browse the ....
virtual internal Task WriteEndAttributeAsync()
Asynchronously closes the previous M:System.Xml.XmlWriter.WriteStartAttribute(System....
abstract void WriteSurrogateCharEntity(char lowChar, char highChar)
When overridden in a derived class, generates and writes the surrogate character entity for the surro...
Returns detailed information about the last exception.
virtual Task WriteBinHexAsync(byte[] buffer, int index, int count)
Asynchronously encodes the specified binary bytes as BinHex and writes out the resulting text.
abstract string GetAttribute(string name)
When overridden in a derived class, gets the value of the attribute with the specified P:System....
abstract void WriteEntityRef(string name)
When overridden in a derived class, writes out an entity reference as &name;.
virtual IXmlSchemaInfo SchemaInfo
Gets the schema information that has been assigned to the current node as a result of schema validati...
abstract void WriteRaw(char[] buffer, int index, int count)
When overridden in a derived class, writes raw markup manually from a character buffer.
The exception that is thrown when one of the arguments provided to a method is not valid.
abstract bool Read()
When overridden in a derived class, reads the next node from the stream.
virtual Task WriteEndElementAsync()
Asynchronously closes one element and pops the corresponding namespace scope.
virtual void Close()
When overridden in a derived class, closes this stream and the underlying stream.
abstract bool MoveToFirstChild()
When overridden in a derived class, moves the T:System.Xml.XPath.XPathNavigator to the first child no...
abstract string Prefix
When overridden in a derived class, gets the namespace prefix associated with the current node.
virtual XmlWriterSettings Settings
Gets the T:System.Xml.XmlWriterSettings object used to create this T:System.Xml.XmlWriter instance.
virtual internal Task WriteStartAttributeAsync(string prefix, string localName, string ns)
Asynchronously writes the start of an attribute with the specified prefix, local name,...
virtual Task WriteEntityRefAsync(string name)
Asynchronously writes out an entity reference as &name;.
virtual Task WriteEndDocumentAsync()
Asynchronously closes any open elements or attributes and puts the writer back in the Start state.
virtual void WriteNode(XmlReader reader, bool defattr)
When overridden in a derived class, copies everything from the reader to the writer and moves the rea...
virtual void WriteValue(float value)
Writes a single-precision floating-point number.
virtual Task WriteNodeAsync(XmlReader reader, bool defattr)
Asynchronously copies everything from the reader to the writer and moves the reader to the start of t...
abstract bool MoveToParent()
When overridden in a derived class, moves the T:System.Xml.XPath.XPathNavigator to the parent node of...
virtual async Task WriteAttributesAsync(XmlReader reader, bool defattr)
Asynchronously writes out all the attributes found at the current position in the T:System....
abstract bool IsEmptyElement
When overridden in a derived class, gets a value indicating whether the current node is an empty elem...
Represents a time interval.To browse the .NET Framework source code for this type,...
virtual Task WriteStartDocumentAsync()
Asynchronously writes the XML declaration with the version "1.0".
Provides a cursor model for navigating and editing XML data.
static XmlWriter Create(TextWriter output, XmlWriterSettings settings)
Creates a new T:System.Xml.XmlWriter instance using the T:System.IO.TextWriter and T:System....
async Task WriteElementStringAsync(string prefix, string localName, string ns, string value)
Asynchronously writes an element with the specified prefix, local name, namespace URI,...
abstract void WriteComment(string text)
When overridden in a derived class, writes out a comment <!–...–> containing the specified text.
virtual void WriteAttributes(XmlReader reader, bool defattr)
When overridden in a derived class, writes out all the attributes found at the current position in th...
abstract bool MoveToFirstAttribute()
When overridden in a derived class, moves the T:System.Xml.XPath.XPathNavigator to the first attribut...
abstract string Value
When overridden in a derived class, gets the string value of the item.
abstract void WriteProcessingInstruction(string name, string text)
When overridden in a derived class, writes out a processing instruction with a space between the name...
XmlSpace
Specifies the current xml:space scope.
Provides information about a specific culture (called a locale for unmanaged code development)....
virtual Task WriteDocTypeAsync(string name, string pubid, string sysid, string subset)
Asynchronously writes the DOCTYPE declaration with the specified name and optional attributes.
abstract string Value
When overridden in a derived class, gets the text value of the current node.
abstract bool ReadAttributeValue()
When overridden in a derived class, parses the attribute value into one or more Text,...
abstract string LocalName
When overridden in a derived class, gets the P:System.Xml.XPath.XPathNavigator.Name of the current no...
static XmlWriter Create(TextWriter output)
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.IO.TextWriter.
virtual Task WriteNmTokenAsync(string name)
Asynchronously writes out the specified name, ensuring it is a valid NmToken according to the W3C XML...
virtual async Task WriteNodeAsync(XPathNavigator navigator, bool defattr)
Asynchronously copies everything from the T:System.Xml.XPath.XPathNavigator object to the writer....
The exception that is thrown when a requested method or operation is not implemented.
XmlDateTimeSerializationMode
Specifies how to treat the time value when converting between string and T:System....
void WriteElementString(string localName, string value)
Writes an element with the specified local name and value.
virtual Task WriteSurrogateCharEntityAsync(char lowChar, char highChar)
Asynchronously generates and writes the surrogate character entity for the surrogate character pair.
static XmlWriter Create(string outputFileName, XmlWriterSettings settings)
Creates a new T:System.Xml.XmlWriter instance using the filename and T:System.Xml....
virtual void WriteValue(double value)
Writes a T:System.Double value.
virtual void WriteName(string name)
When overridden in a derived class, writes out the specified name, ensuring it is a valid name accord...
virtual Task WriteCharsAsync(char[] buffer, int index, int count)
Asynchronously writes text one buffer at a time.
Encodes and decodes XML names, and provides methods for converting between common language runtime ty...
Represents an asynchronous operation that can return a value.
bool IsDefault
Gets a value indicating if this validated XML node was set as the result of a default being applied d...
virtual void WriteValue(int value)
Writes a T:System.Int32 value.
void WriteStartElement(string localName, string ns)
When overridden in a derived class, writes the specified start tag and associates it with the given n...
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....