Mega Code Archive
XElement ReplaceAttributes (Object) replaces the 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 =
root.ReplaceAttributes(New XAttribute("NewAtt1", 101))
Console.WriteLine(root)
End Sub
End Class