Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.
'' List of new nodes to be added to a document Dim S As String = "F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20" '' Convert the string to a List(Of String) Dim SList As New List(Of String)() SList = S.Split(",").ToList() '' Load the Document Dim xdoc As XDocument = XDocument.Load(Application.StartupPath + "\AOP40XYZGG.xml") '' Get a reference to the AOP5 nodes for new nodes to be added to Dim results = (From n In xdoc.Root.Descendants("NewDataSet") Select n).ToList() For Each node As XElement In results For Each newNode As String In SList node.Remove() ****Error Parent not found Next Next '' Asve the resulting document xdoc.Save(Application.StartupPath + "\AOP40XYZGGA.xml")
|Is there a way to programmatically restart a VB.Net application when an exception occurs?||8||62|
|send messages to whatsapp programatically||2||44|
|How can my static class become undefined??||8||47|
How would you rewrite the string because it is too long? strSQL = Constants.txtUpdateStopVoi
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!