Creates a XmlNode with the specified XmlNodeType, Prefix, Name, and NamespaceURI.
[Visual Basic] Overloads Overridable Public Function CreateNode( _ ByVal type As XmlNodeType, _ ByVal prefix As String, _ ByVal name As String, _ ByVal namespaceURI As String _ ) As XmlNode [C#] public virtual XmlNode CreateNode( XmlNodeType type, string prefix, string name, string namespaceURI ); [C++] public: virtual XmlNode* CreateNode( XmlNodeType type, String* prefix, String* name, String* namespaceURI ); [JScript] public function CreateNode( type : XmlNodeType, prefix : String, name : String, namespaceURI : String ) : XmlNode;
The new XmlNode.
Exception Type | Condition |
---|---|
ArgumentException | The name was not provided and the XmlNodeType requires a name. |
XmlDocument Class | XmlDocument Members | System.NewXml Namespace | XmlDocument.CreateNode Overload List