XmlWriter
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files that contain XML data.
Gets the XmlWriterSettings object used to create this XmlWriter instance.
When overridden in a derived class, gets the state of the writer.
When overridden in a derived class, gets the current xml:lang scope.
When overridden in a derived class, gets an XmlSpace representing the current xml:space scope.
protected XmlWriter()
Initializes a new instance of the XmlWriter class.
Creates a new XmlWriter instance using the specified stream.
Creates a new XmlWriter instance using the stream and XmlWriterSettings object.
Creates a new XmlWriter instance using the specified TextWriter.
Creates a new XmlWriter instance using the specified StringBuilder.
Releases all resources used by the current instance of the XmlWriter class.
Releases the unmanaged resources used by the XmlWriter and optionally releases the managed resources.
When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
Asynchronously flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI.
When overridden in a derived class, writes out all the attributes found at the current position in the XmlReader.
Asynchronously writes out all the attributes found at the current position in the XmlReader.
When overridden in a derived class, writes an attribute with the specified local name, namespace URI, and value.
When overridden in a derived class, writes out the attribute with the specified local name and value.
When overridden in a derived class, writes out the attribute with the specified prefix, local name, namespace URI, and value.
Asynchronously writes out the attribute with the specified prefix, local name, namespace URI, and value.
When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the resulting text.
Asynchronously encodes the specified binary bytes as Base64 and writes out the resulting text.
When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the resulting text.
Asynchronously encodes the specified binary bytes as BinHex and writes out the resulting text.
When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text.
Asynchronously writes out a <![CDATA[...]]> block containing the specified text.
When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value.
Asynchronously forces the generation of a character entity for the specified Unicode character value.
When overridden in a derived class, writes text one buffer at a time.
Asynchronously writes text one buffer at a time.
When overridden in a derived class, writes out a comment <!--...--> containing the specified text.
Asynchronously writes out a comment <!--...--> containing the specified text.
When overridden in a derived class, writes the DOCTYPE declaration with the specified name and optional attributes.
Asynchronously writes the DOCTYPE declaration with the specified name and optional attributes.
Writes an element with the specified local name and value.
Writes an element with the specified local name, namespace URI, and value.
Writes an element with the specified prefix, local name, namespace URI, and value.
Asynchronously writes an element with the specified prefix, local name, namespace URI, and value.
When overridden in a derived class, closes the previous WriteStartAttribute call.
When overridden in a derived class, closes any open elements or attributes and puts the writer back in the Start state.
Asynchronously closes any open elements or attributes and puts the writer back in the Start state.
When overridden in a derived class, closes one element and pops the corresponding namespace scope.
Asynchronously closes one element and pops the corresponding namespace scope.
When overridden in a derived class, writes out an entity reference as &name;.
Asynchronously writes out an entity reference as &name;.
When overridden in a derived class, closes one element and pops the corresponding namespace scope.
Asynchronously closes one element and pops the corresponding namespace scope.
When overridden in a derived class, writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
Asynchronously writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
When overridden in a derived class, writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
Asynchronously writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
When overridden in a derived class, copies everything from the reader to the writer and moves the reader to the start of the next sibling.
Asynchronously copies everything from the reader to the writer and moves the reader to the start of the next sibling.
When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: <?name text?>.
Asynchronously writes out a processing instruction with a space between the name and text as follows: <?name text?>.
When overridden in a derived class, writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.
Asynchronously writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.
When overridden in a derived class, writes raw markup manually from a character buffer.
When overridden in a derived class, writes raw markup manually from a string.
Asynchronously writes raw markup manually from a character buffer.
Asynchronously writes raw markup manually from a string.
Writes the start of an attribute with the specified local name and namespace URI.
When overridden in a derived class, writes the start of an attribute with the specified prefix, local name, and namespace URI.
Writes the start of an attribute with the specified local name.
When overridden in a derived class, writes the XML declaration with the version "1.0".
When overridden in a derived class, writes the XML declaration with the version "1.0" and the standalone attribute.
Asynchronously writes the XML declaration with the version "1.0".
Asynchronously writes the XML declaration with the version "1.0" and the standalone attribute.
When overridden in a derived class, writes the specified start tag and associates it with the given namespace.
When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix.
When overridden in a derived class, writes out a start tag with the specified local name.
Asynchronously writes the specified start tag and associates it with the given namespace and prefix.
When overridden in a derived class, writes the given text content.
Asynchronously writes the given text content.
When overridden in a derived class, generates and writes the surrogate character entity for the surrogate character pair.
Asynchronously generates and writes the surrogate character entity for the surrogate character pair.
Writes the object value.
Writes a String value.
Writes a Boolean value.
Writes a DateTimeOffset value.
Writes a Double value.
Writes a single-precision floating-point number.
Writes a Decimal value.
Writes a Int32 value.
Writes a Int64 value.
When overridden in a derived class, writes out the given white space.
Asynchronously writes out the given white space.