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. Best approach towards reading specific information from XML file

Best approach towards reading specific information from XML file

Scheduled Pinned Locked Moved XML / XSL
xmlcsharpdatabaseperformance
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.
  • K Offline
    K Offline
    Krishnaraj Barvathaya B
    wrote on last edited by
    #1

    Hi all, I am developing an application in VB.Net, which uses XML file to feed configuration information. Application will need different configuration information during run time which needs to be fetched from XML file. Please let me know to achieve this task what will be the best approach: Deserialization: Deserialize entire XML file into an object, and keep this object in memory during the entire life of application. Get the configuration information form this object property. Using XPath query: as and when the configuration information is required by the application, it sends a query to XML file to fetch the required information. Experts, please comment on this. Thank you, Regards, Krishnaraj

    L 1 Reply Last reply
    0
    • K Krishnaraj Barvathaya B

      Hi all, I am developing an application in VB.Net, which uses XML file to feed configuration information. Application will need different configuration information during run time which needs to be fetched from XML file. Please let me know to achieve this task what will be the best approach: Deserialization: Deserialize entire XML file into an object, and keep this object in memory during the entire life of application. Get the configuration information form this object property. Using XPath query: as and when the configuration information is required by the application, it sends a query to XML file to fetch the required information. Experts, please comment on this. Thank you, Regards, Krishnaraj

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Support for using XML files for application settings is provided in the .NET BCL. You have not stated what type of application you have but this might help[^]

      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