Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

XmlTextWriter Members

XmlTextWriter overview

Public Constructors

public constructorXmlTextWriter Constructor

Supported by the .NET Compact Framework.

Overloaded. Creates an instance of the XmlTextWriter class.

Public Properties

public propertyBaseStream

Supported by the .NET Compact Framework.

Gets the underlying stream object.
public propertyFormatting

Supported by the .NET Compact Framework.

Indicates how the output is formatted.
public propertyIndentation

Supported by the .NET Compact Framework.

Gets or sets how many IndentChars to write for each level in the hierarchy when Formatting is set to Formatting.Indented.
public propertyIndentChar

Supported by the .NET Compact Framework.

Gets or sets which character to use for indenting when Formatting is set to Formatting.Indented.
public propertyNamespaces

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to do namespace support.
public propertyQuoteChar

Supported by the .NET Compact Framework.

Gets or sets which character to use to quote attribute values.
public propertyWriteState

Supported by the .NET Compact Framework.

Overridden. Gets the state of the writer.
public propertyXmlLang

Supported by the .NET Compact Framework.

Overridden. Gets the current xml:lang scope.
public propertyXmlSpace

Supported by the .NET Compact Framework.

Overridden. Gets an XmlSpace representing the current xml:space scope.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

Overridden. Closes this stream and the underlying stream.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodFlush

Supported by the .NET Compact Framework.

Overridden. Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodLookupPrefix

Supported by the .NET Compact Framework.

Overridden. Returns the closest prefix defined in the current namespace scope for the namespace URI.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodWriteAttributes (inherited from XmlWriter)

Supported by the .NET Compact Framework.

When overridden in a derived class, writes out all the attributes found at the current position in the XmlReader.
public methodWriteAttributeString (inherited from XmlWriter)

Supported by the .NET Compact Framework.

Overloaded. When overridden in a derived class, writes an attribute with the specified value.
public methodWriteBase64

Supported by the .NET Compact Framework.

Overridden. Encodes the specified binary bytes as base64 and writes out the resulting text.
public methodWriteBinHex

Supported by the .NET Compact Framework.

Overridden. Encodes the specified binary bytes as binhex and writes out the resulting text.
public methodWriteCData

Supported by the .NET Compact Framework.

Overridden. Writes out a <![CDATA[...]]> block containing the specified text.
public methodWriteCharEntity

Supported by the .NET Compact Framework.

Overridden. Forces the generation of a character entity for the specified Unicode character value.
public methodWriteChars

Supported by the .NET Compact Framework.

Overridden. Writes text one buffer at a time.
public methodWriteComment

Supported by the .NET Compact Framework.

Overridden. Writes out a comment <!--...--> containing the specified text.
public methodWriteDocType

Supported by the .NET Compact Framework.

Overridden. Writes the DOCTYPE declaration with the specified name and optional attributes.
public methodWriteElementString (inherited from XmlWriter)

Supported by the .NET Compact Framework.

Overloaded. When overridden in a derived class, writes an element containing a string value.
public methodWriteEndAttribute

Supported by the .NET Compact Framework.

Overridden. Closes the previous WriteStartAttribute call.
public methodWriteEndDocument

Supported by the .NET Compact Framework.

Overridden. Closes any open elements or attributes and puts the writer back in the Start state.
public methodWriteEndElement

Supported by the .NET Compact Framework.

Overridden. Closes one element and pops the corresponding namespace scope.
public methodWriteEntityRef

Supported by the .NET Compact Framework.

Overridden. Writes out an entity reference as &name;.
public methodWriteFullEndElement

Supported by the .NET Compact Framework.

Overridden. Closes one element and pops the corresponding namespace scope.
public methodWriteName

Supported by the .NET Compact Framework.

Overridden. 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).
public methodWriteNmToken

Supported by the .NET Compact Framework.

Overridden. 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).
public methodWriteNode (inherited from XmlWriter)

Supported by the .NET Compact Framework.

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.
public methodWriteProcessingInstruction

Supported by the .NET Compact Framework.

Overridden. Writes out a processing instruction with a space between the name and text as follows: <?name text?>.
public methodWriteQualifiedName

Supported by the .NET Compact Framework.

Overridden. Writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.
public methodWriteRaw

Supported by the .NET Compact Framework.

Overloaded. Overridden. Writes raw markup manually.
public methodWriteStartAttribute

Supported by the .NET Compact Framework.

Overloaded. Overridden. Writes the start of an attribute.
public methodWriteStartDocument

Supported by the .NET Compact Framework.

Overloaded. Overridden. Writes the XML declaration with the version "1.0".
public methodWriteStartElement

Supported by the .NET Compact Framework.

Overloaded. Overridden. Writes the specified start tag.
public methodWriteString

Supported by the .NET Compact Framework.

Overridden. Writes the given text content.
public methodWriteSurrogateCharEntity

Supported by the .NET Compact Framework.

Overridden. Generates and writes the surrogate character entity for the surrogate character pair.
public methodWriteWhitespace

Supported by the .NET Compact Framework.

Overridden. Writes out the given white space.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

XmlTextWriter Class | System.Xml Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.