Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.
'' 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")
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.