hello
if I had the below xml and wante to search fro eg PID_V30 and the value of that show in a text box, how would the xpath statemrtn look please.
I have tried various syntax and gone trhough my cbt vids, but can not get it correct.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
-<properties>
<comment>Saving All Parameter + Motor + Indexer Program</comment>
<entry key="PID_IdxType10">383,tInt,0</entry>
<entry key="PID_V31">131,tDouble,0.0000</entry>
<entry key="PID_V30">130,tDouble,0.0000</entry>
I am up to this point.
Private
SubButton4_Click(sender
AsObject,
e AsEventArgs)
HandlesButton4.Click
Dimparam
AsXmlNode
Dimtest
AsString
DimNav
AsXPathNavigator
Nav = xmldoc.CreateNavigator
nodcurrent = xmldoc.DocumentElement
param = nodcurrent.SelectSingleNode(
/entry/[@Name ='PID_V30']")
TextBox2.Text = param.InnerXml
sorry re formatting when I pasted this!
thanks