You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.
With xMatters, you'll never miss a beat.
<?xml version="1.0" encoding="iso-8859-1"?> <message> <value> <field1>0001</field1> <field2>This is the text I need for 0001</field2> </value> <value> <field1>0002</field1> <field2>This is the text I need for 0002</field2> </value> </message> Dim xpathDoc As XPathDocument Dim xmlNav As XPathNavigator Dim xmlNI As XPathNodeIterator Dim _strValue As String = "" xpathDoc = New XPathDocument("C:\test.xml") xmlNav = xpathDoc.CreateNavigator() xmlNI = xmlNav.Select("/message/value/field1") While (xmlNI.MoveNext()) If xmlNI.Current.Value = "0001" Then _strValue= some code here to retrieve value "This is the text I need 0001" Exit While End If End While
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.