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!

XmlContext.CreateElement (String)

Creates an XmlElement instance in this context.

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

Parameters

name
The name part of the identifier for the element.

Return Value

An XmlElement instance with the given name.

Exceptions

Exception Type Condition
ArgumentException If name is not a valid identifier.

Remarks

The identifier of the returned element has the given name and an empty namespace URI. The element has no parent, child nodes, or attributes.

See Also

XmlContext Class | XmlContext Members | System.Xml Namespace | XmlContext.CreateElement Overload List | AddElement