Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Xlinq: write to an element using VB.Net
From Wiki
Firstwe load the file and get the correct element
- _File = XElement.Load(GetFilename)
- _Element = From c In _File.Elements("Element") Select c
Then we set the first elements vale (since we only have one returned to us it has to be the first one).
- _Element(0).SetValue(value)
And last but not least we save the file.
- _File.Save(GetFilename)



LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.