I want to loop all nodes of an xml file, because I want to search the
content for a certain search pattern.
I did something like this :
reader = New XmlNodeReader(doc)
While reader.Read()
Select Case reader.NodeType
Case XmlNodeType.Element
Select Case reader.Name
Case "al"
Dim value As String
value = reader.ReadInnerXml
If regex.Match(value).Success Then
Debug.WriteLine(value)
End If
End Select
End Select
End While
But when I found the pattern I want the node itself, because I want to be
able to ask the parent and so on. Is this possible ?
If not what do I have to use ?
I want to create a new xml file with the results.
Kris.