Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
'' The main directory that holds all the other directories '' Modify the directory path to fit your needs Dim mainDirPath As String = "C:\Working Directory\temp\" '' Get an array of directories that you will look into '' to modify the XML files Dim dirs = Directory.GetDirectories(mainDirPath) '' Iterate through all the directories For Each thisDir In dirs '' Select all the XML files and modify them For Each xmlFile In Directory.GetFiles(thisDir, "*.xml") '' Open each document Dim xdoc As XDocument = XDocument.Load(xmlFile) '' Query the document and find all elements that are not "ID' = to 0 Dim tables As List(Of XElement) = (From ele In xdoc.Descendants() Where ele.Name.LocalName.StartsWith("Table") AndAlso ele.Element("ID").Value <> "0" Select ele).ToList() '' Remove all unwanted elements from the main document tables.Remove() '' Save the modified file back to the file system xdoc.Save(xmlFile) Next Next
|Get the selected ValueMember of Combobox||5||30|
|Get distinct values from excel or comm seperated file||4||23|
|location of a form||2||10|
|VB.net capture result of a SQL query in variables||3||6|