XNode.AddAfterSelf adds the specified content immediately after this node.
Imports System
Imports System.Xml
Imports System.Xml.Schema
Class MainClass
Shared Sub Main()
Dim xmlTree As XElement = _
<Root>
<Child1>1</Child1>
<Child2>2</Child2>
<Child3>3</Child3>
<Child4>4</Child4>
<Child5>5</Child5>
</Root>
Dim child1 As XElement = xmlTree.<Child1>(0)
child1.AddAfterSelf(New XElement("NewChild", 10))
Console.WriteLine(xmlTree)
End Sub
End Class