Mega Code Archive
XContainer RemoveNodes Removes the child nodes from this document or element
Imports System
Imports System.Xml
Imports System.Xml.XPath
Public Class MainClass
Public Shared Sub Main()
Dim xmltree As XElement = _
1
2
3
4mixed content5
xmltree.RemoveNodes()
Console.WriteLine(xmltree)
End Sub
End Class