Mono Class Library: Overview

System.Xml.XmlTextWriter: Members

The members of System.Xml.XmlTextWriter are listed below.

See Also: Inherited members from System.Xml.XmlWriter

Public Constructors

Constructs and initializes a new instance of the System.Xml.XmlTextWriter class.
Constructs and initializes a new instance of the System.Xml.XmlTextWriter class using the specified output stream.
Constructs and initializes a new instance of the System.Xml.XmlTextWriter class using the specified file.

Public Properties

[read-only]
BaseStreamSystem.IO.Stream. Gets the underlying stream used by the writer.
FormattingFormatting. Indicates how the output is formatted.
Indentationint. Gets or sets how many indentation characters to write for each level in the hierarchy when XmlTextWriter.Formatting is set to Formatting.Indented.
IndentCharchar. Gets or sets the character to use for indenting when XmlTextWriter.Formatting is set to Formatting.Indented.
Namespacesbool. Gets or sets a value indicating whether the writer supports namespaces.
QuoteCharchar. Gets or sets the character used to quote the value of an attribute.
[read-only]
override
WriteStateWriteState. Gets the write state of the writer.
[read-only]
override
XmlLangstring. Gets the language attribute, xml:lang, specifying the language in which the content and attribute values of the current element are written.
[read-only]
override
XmlSpaceXmlSpace. Gets the white space attribute, xml:space, specifying how white space is handled in the current element.

Public Methods

override
Close()
Closes the writer.
override
Flush()
Clears all buffers and causes any buffered data to be written to the underlying stream.
override
LookupPrefix(string) : string
Returns the prefix defined in the current namespace scope for the specified namespace URI.
override
WriteBase64(byte[], int, int)
Encodes the specified binary bytes as Base64 and writes the resulting text.
override
WriteBinHex(byte[], int, int)
Encodes the specified binary bytes as BinHex and writes the resulting text.
override
WriteCData(string)
Writes out a CDATA block containing the specified text.
override
WriteCharEntity(char)
Forces the generation of a character entity for the specified Unicode character value.
override
WriteChars(char[], int, int)
Writes text a buffer at a time.
override
WriteComment(string)
Writes out a comment containing the specified text.
override
WriteDocType(string, string, string, string)
Writes the document type declaration with the specified name and optional attributes.
override
WriteEndAttribute()
Closes the attribute started with the XmlTextWriter.WriteStartAttribute(string, string, string) method.
override
WriteEndDocument()
Closes open elements and attributes and sets the XmlTextWriter.WriteState back to the WriteState.Start state.
override
WriteEndElement()
Closes an open element and pops the corresponding namespace scope.
override
WriteEntityRef(string)
Writes an entity reference with the specified name.
override
WriteFullEndElement()
Closes an open element and pops the corresponding namespace scope.
override
WriteName(string)
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).
override
WriteNmToken(string)
Writes out the specified name, ensuring it is a valid name token (Nmtoken) according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
override
WriteProcessingInstruction(string, string)
Writes out a processing instruction with the specified name and text.
override
WriteQualifiedName(string, string)
Writes out the qualified name.
override
WriteRaw(string)
Writes raw text from a string.
override
WriteRaw(char[], int, int)
Writes raw text from a character array.
override
WriteStartAttribute(string, string, string)
Writes the start of an attribute with the specified prefix and name, and associates the prefix with the specified namespace URI.
override
WriteStartDocument()
Writes the XML declaration with the version "1.0" and no standalone attribute.
override
WriteStartDocument(bool)
Writes the XML declaration with the version "1.0" and the standalone attribute.
override
WriteStartElement(string, string, string)
Writes a start element with the specified name, and associates it with the given namespace and prefix.
override
WriteString(string)
Writes the specified text.
override
WriteSurrogateCharEntity(char, char)
Generates and writes the surrogate character entity for the surrogate character pair.
override
WriteWhitespace(string)
Writes the given white space.