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. extract info from XML config files

extract info from XML config files

Scheduled Pinned Locked Moved C#
data-structuresxmltutorialquestion
4 Posts 3 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.
  • S Offline
    S Offline
    sean_mufc
    wrote on last edited by
    #1

    Hi all, I am looking to extract data from an xml config file and place the values in an array. Extract:- .... .... I need to take the values an place in an array. So far I cannot even figure out how to acees the data in the section of the config file. Any ideas??? Seán -- modified at 8:28 Thursday 11th May, 2006

    L E 2 Replies Last reply
    0
    • S sean_mufc

      Hi all, I am looking to extract data from an xml config file and place the values in an array. Extract:- .... .... I need to take the values an place in an array. So far I cannot even figure out how to acees the data in the section of the config file. Any ideas??? Seán -- modified at 8:28 Thursday 11th May, 2006

      L Offline
      L Offline
      LongRange Shooter
      wrote on last edited by
      #2

      Put them in the app settings part of the file.

      S 1 Reply Last reply
      0
      • L LongRange Shooter

        Put them in the app settings part of the file.

        S Offline
        S Offline
        sean_mufc
        wrote on last edited by
        #3

        I already have attributes in the app settings part of the file. For these particular att. I need to extract their values and put them into an array. The number of attributes is not static so I cannot place them in an array using their keys. Is there any other way???.

        1 Reply Last reply
        0
        • S sean_mufc

          Hi all, I am looking to extract data from an xml config file and place the values in an array. Extract:- .... .... I need to take the values an place in an array. So far I cannot even figure out how to acees the data in the section of the config file. Any ideas??? Seán -- modified at 8:28 Thursday 11th May, 2006

          E Offline
          E Offline
          eric feng
          wrote on last edited by
          #4

          try this, ArrayList array = new ArrayList(); XmlNode node = doc.SelectSingleNode("*/langauges"); foreach (XmlNode n in node.Nodes) { array.Add(n.InnerText); } Good luck! eric feng

          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