XmlWriter Members
.NET Framework 3.5
Represents a writer that provides a fast, non-cached, forward-only means of generating streams or files containing XML data.
The XmlWriter type exposes the following members.
| Name | Description | |
|---|---|---|
|
Close | When overridden in a derived class, closes this stream and the underlying stream. |
|
Create | Overloaded. Creates a new XmlWriter instance. |
|
Dispose | Releases the unmanaged resources used by the XmlWriter and optionally releases the managed resources. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Flush | When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
LookupPrefix | When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
WriteAttributes | When overridden in a derived class, writes out all the attributes found at the current position in the XmlReader. |
|
WriteAttributeString | Overloaded. When overridden in a derived class, writes an attribute with the specified value. |
|
WriteBase64 | When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the resulting text. |
|
WriteBinHex | When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the resulting text. |
|
WriteCData | When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text. |
|
WriteCharEntity | When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value. |
|
WriteChars | When overridden in a derived class, writes text one buffer at a time. |
|
WriteComment | When overridden in a derived class, writes out a comment <!--...--> containing the specified text. |
|
WriteDocType | When overridden in a derived class, writes the DOCTYPE declaration with the specified name and optional attributes. |
|
WriteElementString | Overloaded. When overridden in a derived class, writes an element containing a string value. |
|
WriteEndAttribute | When overridden in a derived class, closes the previous WriteStartAttribute call. |
|
WriteEndDocument | When overridden in a derived class, closes any open elements or attributes and puts the writer back in the Start state. |
|
WriteEndElement | When overridden in a derived class, closes one element and pops the corresponding namespace scope. |
|
WriteEntityRef | When overridden in a derived class, writes out an entity reference as &name;. |
|
WriteFullEndElement | When overridden in a derived class, closes one element and pops the corresponding namespace scope. |
|
WriteName | 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). |
|
WriteNmToken | 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). |
|
WriteNode | Overloaded. Copies everything from the source object to the current writer instance. |
|
WriteProcessingInstruction | When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: <?name text?>. |
|
WriteQualifiedName | 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. |
|
WriteRaw | Overloaded. When overridden in a derived class, writes raw markup manually. |
|
WriteStartAttribute | Overloaded. When overridden in a derived class, writes the start of an attribute. |
|
WriteStartDocument | Overloaded. When overridden in a derived class, writes the XML declaration. |
|
WriteStartElement | Overloaded. When overridden in a derived class, writes the specified start tag. |
|
WriteString | When overridden in a derived class, writes the given text content. |
|
WriteSurrogateCharEntity | When overridden in a derived class, generates and writes the surrogate character entity for the surrogate character pair. |
|
WriteValue | Overloaded. Writes a single simple-typed value. |
|
WriteWhitespace | When overridden in a derived class, writes out the given white space. |
| Name | Description | |
|---|---|---|
|
Settings | Gets the XmlWriterSettings object used to create this XmlWriter instance. |
|
WriteState | When overridden in a derived class, gets the state of the writer. |
|
XmlLang | When overridden in a derived class, gets the current xml:lang scope. |
|
XmlSpace | When overridden in a derived class, gets an XmlSpace representing the current xml:space scope. |