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. Reading XML into a Hashtable

Reading XML into a Hashtable

Scheduled Pinned Locked Moved C#
csharpxml
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.
  • W Offline
    W Offline
    Wolfram Steinke
    wrote on last edited by
    #1

    I'm finally starting on C#. Something I haven't had success with so far is reading/writing a table with the following XML format into a Hashtable object. (at this point in time the reading is the priority) <table> <item key="testkey">key value</item> <item key="testkey2">key value2</item> <item key="testkey3">key value3</item> </table> Both the key and the value are strings. Any suggestions will be most welcome. Happy programming!! -- modified at 0:51 Friday 28th April, 2006

    G 1 Reply Last reply
    0
    • W Wolfram Steinke

      I'm finally starting on C#. Something I haven't had success with so far is reading/writing a table with the following XML format into a Hashtable object. (at this point in time the reading is the priority) <table> <item key="testkey">key value</item> <item key="testkey2">key value2</item> <item key="testkey3">key value3</item> </table> Both the key and the value are strings. Any suggestions will be most welcome. Happy programming!! -- modified at 0:51 Friday 28th April, 2006

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Put the xml in an XmlDocument object. The items will be the nodes in the child nodes collection of DocumentElement. --- b { font-weight: normal; }

      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