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, String)

Creates an XmlElement instance in this context.

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

Parameters

name
The name part of the identifier for the element.
ns
The namespace URI of the identifier for the element.

Return Value

An XmlElement instance with the given name and namespace.

Exceptions

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

Remarks

The identifier of the returned element has the given name and 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