I'm using the following to pull a string from an XML Log file:
Public Sub ReadXMLFile()
Dim xmlDoc As New XmlDocument
xmlDoc.Load("d: \test.xml")
Dim DriveError As String =
xmlDoc.SelectSi ngleNode("/joblog/backup/set/directory/directory/director
y/drive_error").I nnerText
MsgBox(DriveErr or)
End Sub
However, the "drive_erro r" part of the node could be any number of
"directory" 's deep depending on where the error occurred during the
backup.
Is there a wildcard or some other way I could grab the drive_error text
regardless of how deep it is?
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Public Sub ReadXMLFile()
Dim xmlDoc As New XmlDocument
xmlDoc.Load("d: \test.xml")
Dim DriveError As String =
xmlDoc.SelectSi ngleNode("/joblog/backup/set/directory/directory/director
y/drive_error").I nnerText
MsgBox(DriveErr or)
End Sub
However, the "drive_erro r" part of the node could be any number of
"directory" 's deep depending on where the error occurred during the
backup.
Is there a wildcard or some other way I could grab the drive_error text
regardless of how deep it is?
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Comment