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

Creates an XmlElement with the specified LocalName and NamespaceURI.

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

Parameters

qualifiedName
Name of the element.
namespaceURI
NamespaceURI of the element.

Return Value

The new XmlElement.

Remarks

For example:

[C++]
CreateElement("foo:bar", "urn:abc");

This results in the same XmlElement that would have resulted from loading the following XML text:

<foo:bar xmlns:foo="urn:abc"/>

See Also

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