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!

XmlWriter Methods

The methods of the XmlWriter class are listed below. For a complete list of XmlWriter class members, see the XmlWriter Members topic.

Public:

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.
ToString (inherited from Object) Returns a String that represents the current Object.
WriteAttrBoolean Overloaded. Writes out an attribute with a boolean value.
WriteAttrDate Overloaded. Writes out an attribute with a Date value.
WriteAttrDateTime Overloaded. Writes out an attribute with a DateTime value.
WriteAttrDecimal Overloaded. Writes out an attribute with a Decimal value.
WriteAttrDouble Overloaded. Writes out an attribute with a Double value.
WriteAttribute Overloaded. Writes out specified attribute with the specified value.
WriteAttributes Writes out all the attributes found at the current position in the specified XmlReader
WriteAttrInt16 Overloaded. Writes out an attribute with a Int16 value.
WriteAttrInt32 Overloaded. Writes out an attribute with a Int32 value.
WriteAttrInt64 Overloaded. Writes out an attribute with a Int64 value.
WriteAttrSingle Overloaded. Writes out an attribute with a Single value.
WriteAttrTime Overloaded. Writes out an attribute with a Time value.
WriteAttrTimeSpan 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 Overloaded. Writes out an element containing a boolean value.
WriteElementDate Overloaded. Writes out an element containing a Date value.
WriteElementDateTime Overloaded. Writes out an element containing a DateTime value.
WriteElementDecimal Overloaded. Writes out an element containing a Decimal value.
WriteElementDouble Overloaded. Writes out an element containing a Double value.
WriteElementInt16 Overloaded. Writes out an element containing a Int16 value.
WriteElementInt32 Overloaded. Writes out an element containing a Int32 value.
WriteElementInt64 Overloaded. Writes out an element containing a Int64 value.
WriteElementSingle Overloaded. Writes out an element containing a Single value.
WriteElementString Overloaded. Writes out an element containing a string value.
WriteElementTime Overloaded. Writes out an element containing a Time value.
WriteElementTimeSpan Overloaded. Writes out an element containing a TimeSpan value.
WriteEmptyElement Writes 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 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 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:

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

XmlWriter Class | System.NewXml Namespace