Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. Linq to xml

Linq to xml

Scheduled Pinned Locked Moved LINQ
databasehelpcsharplinqxml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    programmervb netc
    wrote on last edited by
    #1

    Can someone please send me in the correct direction on this problem. This is related to another post that I made but it was obviously not clear. I need the value based on the other elements surrounding it. I have been able to retrieve HS But I cannot get only the value HS. I could parse this but I think that I am just not doing something correctly... This is the equivalent sudo SQL SELECT value FROM xmldocuement.johnr WHERE setting = "frmMainForm" AND key = "LastLocale" Database DatabaseHost localhost frmMainForm GridMode T I need to know what this Value is using the UserName,Setting, and Key frmMainForm LastLocale HS frmMainForm LastLocale HS Any help would be so appreciated.:confused: Humble Programmer

    G 1 Reply Last reply
    0
    • P programmervb netc

      Can someone please send me in the correct direction on this problem. This is related to another post that I made but it was obviously not clear. I need the value based on the other elements surrounding it. I have been able to retrieve HS But I cannot get only the value HS. I could parse this but I think that I am just not doing something correctly... This is the equivalent sudo SQL SELECT value FROM xmldocuement.johnr WHERE setting = "frmMainForm" AND key = "LastLocale" Database DatabaseHost localhost frmMainForm GridMode T I need to know what this Value is using the UserName,Setting, and Key frmMainForm LastLocale HS frmMainForm LastLocale HS Any help would be so appreciated.:confused: Humble Programmer

      G Offline
      G Offline
      Gideon Engelberth
      wrote on last edited by
      #2

      Assuming you have the data in a variable named xmlData, you should need something like this:

      Dim value = From elem In xmlData.<johnr> _
      Where elem.<setting>.Value = "frmMainForm" AndAlso _
      elem.<key>.Value = "LastLocale" _
      Select elem.<value>.Value

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups