Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Community Wiki

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.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

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

Navigation

Google Ads

Xlinq: write to an element using VB.Net

From Wiki

Jump to: navigation, search

Firstwe load the file and get the correct element

  1. _File = XElement.Load(GetFilename)
  2. _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).

  1. _Element(0).SetValue(value)


And last but not least we save the file.

  1. _File.Save(GetFilename)

358 Rating: 1.7/5 (3 votes cast)