hey all,
all i'm trying to do is retrieve text value from a particular node. and i
can get it the way shown below but was wondering if there was a cleaner way.
Because right now i'm looping thru the xml file looking for a particular node
and when it finds it i go ahead and read one more time to advance to the
value of the node. is this how it's normally done?
Do While (reader.Read())
Select Case reader.NodeType
Case XmlNodeType.Element 'Display beginning of element.
If reader.Name = "strSearch" Then
reader.Read()
RichTextBox1.AppendText(reader.Value)
End If
End Select
Loop
thanks,
rodchar