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>18.104.22.168</IP><Location>02-157-1-q</Location></switchIP><switchIP><SwitchName>ES2UA1</SwitchName><IP>22.214.171.124</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 whiteboikyle, 11 March 2014 - 12:02 AM.