Removes a given node from the child list of this element.
[Visual Basic] Public Sub Remove( _ ByVal child As XmlNode _ ) [C#] public void Remove( XmlNode child ); [C++] public: void Remove( XmlNode* child ); [JScript] public function Remove( child : XmlNode );
Exception Type | Condition |
---|---|
ArgumentException | If child is null or if the parent of child is not this element. |
The child node is removed from the child list of this element. An exception is thrown if the parent of child is not this element. The parent of child becomes null after the operation.
XmlContainer Class | XmlContainer Members | System.Xml Namespace | Add | AddBefore | RemoveAll