What is the XPath expression that I would use to get the string following \'HarryPotter:\' for each book.
ie. Given this XML:
In your XML you've got no space between Harry Potter but in your XQuery you've got a space. Just make it match and presto, you'll get data back...
Dim xml =
HarryPotter:Chamber of Secrets
HarryPotter:Prisoners in Azkabahn
MyDummyBook:Dummy Title
Dim xdoc As New Xml.XmlDocument
xdoc.LoadXml(xml.ToString)
Dim Nodes = xdoc.SelectNodes("/bookstore/book/text()[substring-after(., 'HarryPotter:')]")
Dim Iter = Nodes.GetEnumerator()
While Iter.MoveNext
With DirectCast(Iter.Current, Xml.XmlNode).Value
Console.WriteLine(.Substring(.IndexOf(":") + 1))
End With
End While