XAttribute.Value Property gets or sets the value of this attribute.
Imports System Imports System.Xml Imports System.Xml.XPath Public Class MainClass Public Shared Sub Main() Dim root As XElement = <Root Att="content"/> Console.WriteLine(root.@Att) root.@Att = "new text" Console.WriteLine(root.@Att) End Sub End Class