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 (XmlIdent)

Creates an XmlElement instance in this context.

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

Parameters

id
The identifier of the new element.

Return Value

An XmlElement instance with the given identifier.

Exceptions

Exception Type Condition
ArgumentException If id is null.

Remarks

If the given identifier does not belong to this context, a new identifier with the same name and namespace is obtained. The returned element has no parent, child nodes, or attributes.

See Also

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