Creates a new node and inserts it at the specified position in the tree relative to the current position and moves the navigator to point at this newly inserted node.
[Visual Basic] Overloads Overrides Public Sub Insert( _ ByVal p As TreePosition, _ ByVal nt As XmlNodeType, _ ByVal localName As String, _ ByVal namespaceURI As String, _ ByVal prefix As String _ ) [C#] public override void Insert( TreePosition p, XmlNodeType nt, string localName, string namespaceURI, string prefix ); [C++] public: override void Insert( TreePosition p, XmlNodeType nt, String* localName, String* namespaceURI, String* prefix ); [JScript] public override function Insert( p : TreePosition, nt : XmlNodeType, localName : String, namespaceURI : String, prefix : String );
Exception Type | Condition |
---|---|
ArgumentException | The nt parameter specifies an XmlNodeType that can not be inserted at position p. For example, if the position specified is "Parent" then the NodeType of the new node cannot be Attribute, CDATA or Text or Comment.
The specified XmlNodeType requires a name and no name was provided. The XmlNodeType has no Name and a name, namespaceURI, or prefix was provided. |
TBD--Add NodeType table here.
DocumentNavigator Class | DocumentNavigator Members | System.NewXml Namespace | DocumentNavigator.Insert Overload List