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!

XmlDocument.CreateElement (String)

Creates an element with the specified name.

[Visual Basic]
Overloads Overridable Public Function CreateElement( _
   ByVal name As String _
) As XmlElement
[C#]
public virtual XmlElement CreateElement(
   string name
);
[C++]
public: virtual XmlElement* CreateElement(
   String* name
);
[JScript]
public function CreateElement(
   name : String
) : XmlElement;

Parameters

name
Name of the element.

Return Value

The new XmlElement.

Remarks

Note that the instance returned implements the XmlElement interface, so attributes can be specified directly on the returned object. In addition, if there are known attributes with default values, XmlAttribute nodes representing them are automatically created and attached to the element.

See Also

XmlDocument Class | XmlDocument Members | System.NewXml Namespace | XmlDocument.CreateElement Overload List