Mega Code Archive
XElement ReplaceAll replaces child nodes and attributes with the specified content
Imports System
Imports System.Xml
Imports System.Xml.XPath
Public Class MainClass
Public Shared Sub Main()
Dim root As XElement = _
child content
root.ReplaceAll(n)
Console.WriteLine(root)
End Sub
End Class