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;
An XmlElement instance with the given identifier.
Exception Type | Condition |
---|---|
ArgumentException | If id is null. |
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.
XmlContext Class | XmlContext Members | System.Xml Namespace | XmlContext.CreateElement Overload List | AddElement