This documentation is archived and is not being maintained.

XmlWriter.WriteStartElement Method

When overridden in a derived class, writes the specified start tag.

Overload List

When overridden in a derived class, writes out a start tag with the specified local name.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Sub WriteStartElement(String)
[C#] public void WriteStartElement(string);
[C++] public: void WriteStartElement(String*);
[JScript] public function WriteStartElement(String);

When overridden in a derived class, writes the specified start tag and associates it with the given namespace.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Sub WriteStartElement(String, String)
[C#] public void WriteStartElement(string, string);
[C++] public: void WriteStartElement(String*, String*);
[JScript] public function WriteStartElement(String, String);

When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Sub WriteStartElement(String, String, String)
[C#] public abstract void WriteStartElement(string, string, string);
[C++] public: virtual void WriteStartElement(String*, String*, String*) = 0;
[JScript] public abstract function WriteStartElement(String, String, String);

Example

See WriteStartElement (in the XmlTextWriter class) for an example using this method.

See Also

XmlWriter Class | XmlWriter Members | System.Xml Namespace

Show: