You could use Xml Serialization, because your text looks like Xml...
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim s As New System.Xml.Serialization.XmlSerializer(GetType(Title))
Dim t As Title
Using sr As New System.IO.StringReader("<title>[...]</title>")
t = CType(s.Deserialize(sr), Title)
End Using
MessageBox.Show(t.UnspecifiedString)
End Sub
End Class
<System.Xml.Serialization.XmlRoot("title")>
Public Class Title
<System.Xml.Serialization.XmlText>
Public Property UnspecifiedString As String
End Class
Ok, maybe it's overkill if this is all you are doing, but I suspect <title>
is just one node in an Xml document. Then it might be worth defining the entire model in VB and deserializing the whole file. You can see some of my other recent answers related to this below
How to deserialize 5-6 level tags using VB.NET
Write and read data from XML file through VB.Net at launch
Retrieve specific part of XML tree value