Jump to content


XML Query Assistance

xml query

  • Please log in to reply
No replies to this topic

#1 whiteboikyle

  • Members
  • PipPipPip
  • Advanced Member
  • 290 posts

Posted 11 March 2014 - 05:02 AM


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"?>
and i am trying to do a query where it will search for "ES2UA1" and i get the data "IP" and "Location"
I know i am some where in the ball park with
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

Edited by whiteboikyle, 11 March 2014 - 05:02 AM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users