ReplaceAll with a DateTime object
Imports System
Imports System.Xml
Imports System.Xml.XPath
Public Class MainClass
Public Shared Sub Main()
Dim root As XElement = _
<Root>
<Child>child content</Child>
</Root>
Dim dt As DateTime = New DateTime(2010, 10, 6, 12, 30, 0)
root.ReplaceAll(dt)
Console.WriteLine(root)
End Sub
End Class
Related examples in the same category