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. C#
  4. Read from xml

Read from xml

Scheduled Pinned Locked Moved C#
questionxmltutorial
3 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.
  • A Offline
    A Offline
    akkram
    wrote on last edited by
    #1

    Hi, how can I access a specific node in a XML document and read its data? Say for example if I have the following XML doc and want to access on Note id; title date text title date text /Thanks

    L 1 Reply Last reply
    0
    • A akkram

      Hi, how can I access a specific node in a XML document and read its data? Say for example if I have the following XML doc and want to access on Note id; title date text title date text /Thanks

      L Offline
      L Offline
      lmoelleb
      wrote on last edited by
      #2

      You would most likely want to learn XPath. You can do it without by walking the DOM, but XPath is worth the time it takes to learn it (well, unless you go firectly for some LINQ stuff). In the simple form, load it into an XmlDocument, then use the SelectNodes/SelectSingleNodes methods available on the document (and all contained elements). Google for "XPath Tutorial" to figure out how XPath works.

      A 1 Reply Last reply
      0
      • L lmoelleb

        You would most likely want to learn XPath. You can do it without by walking the DOM, but XPath is worth the time it takes to learn it (well, unless you go firectly for some LINQ stuff). In the simple form, load it into an XmlDocument, then use the SelectNodes/SelectSingleNodes methods available on the document (and all contained elements). Google for "XPath Tutorial" to figure out how XPath works.

        A Offline
        A Offline
        akkram
        wrote on last edited by
        #3

        Thx ill take a look :)

        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