Hello, i've been searching quite a while but haven't found the solution i'm after.
I have a project where I need to show clients in a listbox imported from a XML file so far that is what I have but I also need to able to show the related data when I select the name in the listbox
This is my code for getting them in a listbox:
Dim doc As New Xml.XmlDocument
doc.Load("input.xml")
Dim xmlTitles As Xml.XmlNodeList = doc.GetElementsByTagName("name")
For i As Integer = 0 To xmlTitles.Count - 1
ListBox1.Items.Add(xmlTitles(i).FirstChild.Value)
Next
and here is the XML file I have to work with:
<?xml version="1.0"?>
-<clients>
-<client id="1">
<name>Acrobedding (Cloud)</name>
<sender>cloud@acrobedding.com</sender>
<errorWords>failed|error</errorWords>
<falseWords>Warnings: []|Errors: []|Failed to process path:|FilesWithError: 0|VerboseErrors:</falseWords>
<link>jent@intlight.be</link>
<days>MA|DI|WO|DO|VR</days>
</client>
-<client id="2">
<name>ABF (Cloud)</name>
<sender>cloud@abf.be</sender>
<errorWords>failed|error</errorWords>
<falseWords>Warnings: []|Errors: []|Failed to process path:|FilesWithError: 0|VerboseErrors:</falseWords>
<link>jent@intlight.be</link>
<days>MA|DI|WO|DO|VR</days>
</client>
So for example I have to be able to select the customer (Acrobedding (Cloud)) and then the Errorwords and falsewords related to that name have to show up in a textbox or something like that.
If anyone has a solution for my problem it would be much appreciated.
Thanks in advance