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. XML / XSL
  4. XML search

XML search

Scheduled Pinned Locked Moved XML / XSL
csharpxmltutorialquestion
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.
  • D Offline
    D Offline
    dzthomas
    wrote on last edited by
    #1

    Hi, I'm looking to search through child nodes, and then capture the value of the node and also that of the parent node. For example, the user enters details into a field, which then gets checked against the child node, if matched then it gets the value of that node and also the parent value. Which then will be populated into a treeView I'm trying to use XMLPathNavigator and it doesn't appear to be working. Any ideas? Or other ways to attempt this. I'm using c#.net 2005 to do this. It sounds extremely easy, but just can't get it to work. Cheers... Dan Cheers.. Dan

    I 1 Reply Last reply
    0
    • D dzthomas

      Hi, I'm looking to search through child nodes, and then capture the value of the node and also that of the parent node. For example, the user enters details into a field, which then gets checked against the child node, if matched then it gets the value of that node and also the parent value. Which then will be populated into a treeView I'm trying to use XMLPathNavigator and it doesn't appear to be working. Any ideas? Or other ways to attempt this. I'm using c#.net 2005 to do this. It sounds extremely easy, but just can't get it to work. Cheers... Dan Cheers.. Dan

      I Offline
      I Offline
      Igor Sukhov
      wrote on last edited by
      #2

      Perform the search in XPathDocument or XmlDocument by using SelectSingleNode method. When element is found it is easy to navigate back to the parent node (ParentNode property). Best regards, ----------- Igor Sukhovhttp://sukhov.net

      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