Dim xdoc As XDocument = XDocument.Load(Application.StartupPath + "\AP40B.xml") Dim ii As Integer = 0 For Each item As XElement In xdoc.Elements("AP40") item.Element("ID").Value = ii ii = ii + 1 Next ' Save the modified xdoc to the file system xdoc.Save(Application.StartupPath + "\AP40B.xml")
|Adding queries and macros to many Microsoft Access Databases.||7||74|
|Need to pass a connection through class/Method||1||39|
|consuming an asmx web service in winforms application||3||24|
|Help with LINQ and XML||10||26|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!