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 as a config file

XML as a config file

Scheduled Pinned Locked Moved XML / XSL
databasexmlquestion
5 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.
  • S Offline
    S Offline
    Steve McLenithan
    wrote on last edited by
    #1

    I am creating a few modules for DNN and I want to use an XML file for each one to store the settings. Doing this would greatly reduce the pain of installing the module (not having to mess with DB scripts). I know there is a function that you can use to get the value of a key in the web.config file (can't remember its name...). How would I go about creating a similar function of my own?

    // Steve McLenithan

    Family Guy: Season 2 - Episode 8

    S 1 Reply Last reply
    0
    • S Steve McLenithan

      I am creating a few modules for DNN and I want to use an XML file for each one to store the settings. Doing this would greatly reduce the pain of installing the module (not having to mess with DB scripts). I know there is a function that you can use to get the value of a key in the web.config file (can't remember its name...). How would I go about creating a similar function of my own?

      // Steve McLenithan

      Family Guy: Season 2 - Episode 8

      S Offline
      S Offline
      Steve McLenithan
      wrote on last edited by
      #2

      Looks like I may have found an answer right here on CP: http://www.codeproject.com/csharp/app_config.asp[^] :doh: Looks pretty good unless anyone knows of a better solution.

      // Steve McLenithan

      Family Guy: Season 2 - Episode 8

      N 1 Reply Last reply
      0
      • S Steve McLenithan

        Looks like I may have found an answer right here on CP: http://www.codeproject.com/csharp/app_config.asp[^] :doh: Looks pretty good unless anyone knows of a better solution.

        // Steve McLenithan

        Family Guy: Season 2 - Episode 8

        N Offline
        N Offline
        Nick Parker
        wrote on last edited by
        #3

        Steve McLenithan wrote: Looks pretty good unless anyone knows of a better solution. If you want extensiblity for updating of the XML file check out my following article: An extension for a configuration settings class in .NET[^] -Nick Parker

        S 1 Reply Last reply
        0
        • N Nick Parker

          Steve McLenithan wrote: Looks pretty good unless anyone knows of a better solution. If you want extensiblity for updating of the XML file check out my following article: An extension for a configuration settings class in .NET[^] -Nick Parker

          S Offline
          S Offline
          Steve McLenithan
          wrote on last edited by
          #4

          Awesome! That is way better:cool:

          // Steve McLenithan

          Family Guy: Season 2 - Episode 8

          N 1 Reply Last reply
          0
          • S Steve McLenithan

            Awesome! That is way better:cool:

            // Steve McLenithan

            Family Guy: Season 2 - Episode 8

            N Offline
            N Offline
            Nick Parker
            wrote on last edited by
            #5

            Glad to help. :) -Nick Parker

            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