This question is close, but it's looking for the ordinal position. I'm looking for the actual index position in a given source string.
Better Explanation:
I have the following string
"<a>
<b>zyx</b>
<b>wvu</b>
<b>tsr</b>
<b>qpo</b>
</a>"
I'm loading that string into a .NET XmlDocument object. Carriage Returns and Line Fees may be a factor here.
Dim xmlSearchText As New XmlDocument()
xmlSearchText.LoadXml(SearchTextBox.Text)
Dim selectedNode As XmlNode = xmlSearchText.SelectSingleNode(txtSearch.Text)
The following XPath Statement could be used to find the 3rd node:
a/b[.='tsr']
However, I need it to return a string index of 23 rather than the ordinal position of 3.
Possible? Not Possible?