Im use to PHP and doing a query seems similar but i need help with syntax.
I have an XML file that looks like this
<?xml version="1.0" standalone="yes"?><DataSet1 xmlns="http://tempuri.org/DataSet1.xsd"><switchIP><SwitchName>ES1UA1</SwitchName><IP>188.8.131.52</IP><Location>02-157-1-q</Location></switchIP><switchIP><SwitchName>ES2UA1</SwitchName><IP>184.108.40.206</IP><Location>02-157-1-q</Location></switchIP></DataSet1>
Dim doc = XDocument.Load(My.Application.Info.DirectoryPath & ".\xmlData.xml") Dim marker2 = From x In doc...<switchIP> _ Where x.SwitchName = "ES1UA1" _ Select x for each x as y msgbox(y.IP)
Edited by Whitey, 10 March 2014 - 08:59 PM.