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 : get an elements value with VB.Net
From Wiki
First we load the file.
- Dim _File As XElement = XElement.Load(GetFilename)
The next line takes out the Element we want. We don't need to specify the root element(a misstake I made the first time around.)
- Dim _Element As IEnumerable(Of XElement) = From c In _File.Elements("Element") Select c
The last line just takes the value of the element and puts it in a string value.
- _return = _Element.Value.ToString



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