XML FILE
this is example file, there is 2 group
(real file has more than 1000 group)
<Text>You guys were the ones calling
out and making a racket.</Text>
<Text>I thought you needed help,</Text>
i want them like this in vb
if more than 2 group it will be create new textbox automatically for every group
[textbox1]
You guys were the ones calling
out and making a racket.
[textbox2]
I thought you needed help,
can someone guide me? i think i have to find text by <Text*> tag
and split them but it's duplicated tag i can't define them
UPDATE
i use this code and it's working fine
now i can split any group i want
Dim xml = XDocument.Load("C:\Users\Administrator\Desktop\12.xml")
Dim xstr As String = xml.ToString
Dim String1 As String = "<Text>"
Dim String2 As String = "</Text>"
Dim xlist As New List(Of String)
Do
xstr = Mid(xstr, InStr(xstr.ToLower, String1.ToLower) + String1.Length)
xlist.Add(Mid(xstr, 1, InStr(xstr.ToLower, String2.ToLower) - 1))
xstr = Mid(xstr, InStr(xstr.ToLower, String2.ToLower) + String2.Length)
Loop Until InStr(xstr.ToLower, String1.ToLower) = 0
Dim i = 0
Do
RichTextBox1.Text &= xlist(i) & Environment.NewLine
i += 1
Loop Until i = xlist.Count