NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlTextWriter Members

Public:

Constructor

XmlTextWriter Constructor Overloaded. Creates an instance of the XmlTextWriter class.

Properties

DataTypeNamespace Gets or sets the DataTypes namespace which determines how the strongly typed values are converted to XML text.
EncodeNames Gets or sets a value indicating whether to encode element and attribute names according to the XML Names specification.
Formatting Gets or sets options on how the output is formatted.
Indentation Gets or sets how many IndentChars to write for each level in the hierarchy when doing "Indented" Formatting.
IndentChar Gets or sets which character to use for indenting when doing "Indented" Formatting.
Namespaces Gets or sets a value indicating whether to do namespace support.
QuoteChar Gets or sets which character to use to quote attribute values.
WriteState Gets the state of the stream.
XmlLang Gets the current xml:lang scope.
XmlSpace Gets an XmlSpace representing the current xml:space scope.

Methods

Close Close this stream and the underlying stream.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Flush Flush whatever is in the buffer to the underlying streams and flush the underlying stream.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
LookupPrefix Returns the prefix defined in the current namespace scope for the specified namespace URI.
Reset Enables you to write multiple XML documents to one stream.
ToString (inherited from Object) Returns a String that represents the current Object.
WriteAttrBoolean (inherited from XmlWriter) Overloaded. Writes out an attribute with a boolean value.
WriteAttrDate (inherited from XmlWriter) Overloaded. Writes out an attribute with a Date value.
WriteAttrDateTime (inherited from XmlWriter) Overloaded. Writes out an attribute with a DateTime value.
WriteAttrDecimal (inherited from XmlWriter) Overloaded. Writes out an attribute with a Decimal value.
WriteAttrDouble (inherited from XmlWriter) Overloaded. Writes out an attribute with a Double value.
WriteAttribute (inherited from XmlWriter) Overloaded. Writes out specified attribute with the specified value.
WriteAttributes (inherited from XmlWriter) Writes out all the attributes found at the current position in the specified XmlReader
WriteAttrInt16 (inherited from XmlWriter) Overloaded. Writes out an attribute with a Int16 value.
WriteAttrInt32 (inherited from XmlWriter) Overloaded. Writes out an attribute with a Int32 value.
WriteAttrInt64 (inherited from XmlWriter) Overloaded. Writes out an attribute with a Int64 value.
WriteAttrSingle (inherited from XmlWriter) Overloaded. Writes out an attribute with a Single value.
WriteAttrTime (inherited from XmlWriter) Overloaded. Writes out an attribute with a Time value.
WriteAttrTimeSpan (inherited from XmlWriter) Overloaded. Writes out an attribute with a TimeSpan value.
WriteBase64 Encodes the specified binary bytes as base64 and writes out the resulting text.
WriteBinHex Encodes the specified binary bytes as binhex and writes out the resulting text.
WriteBoolean Writes out the specified boolean value.
WriteCData Writes out a <![CDATA[...]]> block containing the specified text.
WriteChar Writes out the specified single character value.
WriteCharEntity Forces the generation of a character entity for the specified Unicode character value.
WriteChars Writes text a buffer at a time.
WriteComment Writes out a comment <!--...--> containing the specified text.
WriteDate Writes out the specified Date value.
WriteDateTime Writes out the specified DateTime value.
WriteDecimal Writes out the specified Decimal value.
WriteDocType Writes out the DOCTYPE declaration with the specified name and optional attributes.
WriteDouble Writes out the specified Double value.
WriteElementBoolean (inherited from XmlWriter) Overloaded. Writes out an element containing a boolean value.
WriteElementDate (inherited from XmlWriter) Overloaded. Writes out an element containing a Date value.
WriteElementDateTime (inherited from XmlWriter) Overloaded. Writes out an element containing a DateTime value.
WriteElementDecimal (inherited from XmlWriter) Overloaded. Writes out an element containing a Decimal value.
WriteElementDouble (inherited from XmlWriter) Overloaded. Writes out an element containing a Double value.
WriteElementInt16 (inherited from XmlWriter) Overloaded. Writes out an element containing a Int16 value.
WriteElementInt32 (inherited from XmlWriter) Overloaded. Writes out an element containing a Int32 value.
WriteElementInt64 (inherited from XmlWriter) Overloaded. Writes out an element containing a Int64 value.
WriteElementSingle (inherited from XmlWriter) Overloaded. Writes out an element containing a Single value.
WriteElementString (inherited from XmlWriter) Overloaded. Writes out an element containing a string value.
WriteElementTime (inherited from XmlWriter) Overloaded. Writes out an element containing a Time value.
WriteElementTimeSpan (inherited from XmlWriter) Overloaded. Writes out an element containing a TimeSpan value.
WriteEmptyElement This method will generate an empty tag that ends with "/>".
WriteEndAttribute Closes the previous WriteStartAttribute call.
WriteEndElement Closes one element and pops the corresponding namespace scope.
WriteEntityRef Writes out an entity reference as follows: "&"+name+";".
WriteInt16 Writes out the specified Int16 value.
WriteInt32 Writes out the specified Int32 value.
WriteInt64 Writes out the specified Int64 value.
WriteName Writes out the specified name, ensuring it is a valid Name according to the XML specification (href="
WriteNmToken Writes out the specified name, ensuring it is a valid NmToken according to the XML specification (
WriteNode (inherited from XmlWriter) Copies everything from the given reader to the writer, moving the XmlReader to the end of the current element.
WriteProcessingInstruction Writes out a processing instruction with a space between the name and text as follows: <?name text?>.
WriteQualifiedName Writes out the specified namespace-qualified name by looking up the prefix that is in scope for the given namespace.
WriteRaw Overloaded. Writes raw markup manually.
WriteSingle Writes out the specified float value.
WriteStartAttribute Writes the start of an attribute.
WriteStartElement (inherited from XmlWriter) Overloaded. Writes out the specified start tag.
WriteString Writes out the specified text content.
WriteTime Writes out the specified Time value.
WriteTimeSpan Writes out the specified TimeSpan value.
WriteXmlDecl Overloaded. Writes out the XML declaration. A call to one of the WriteXmlDecl methods must be first write call.

Protected:

Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

XmlTextWriter Class | System.NewXml Namespace