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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Application design (XML)

Application design (XML)

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

    I am working on a database application that I call MultiBase. The jist of the application is that it will load a database and create a GUI to interact with it. The application also impliments search and reporting capabilities. The application is currently a winform application, but I plan on implimenting a web interface at a later date. Currently when I select the database to use my application looks for an associated XML file that defines the controls, associated database fields, etc, to be used to create the GUI. The XML looks like this: ComboBox Manufacture Manufacture Manufactures 1 1 1 Select/Enter a manufacturer TextBox Part Number Part_Number 1 2 2 Enter part number In addition to storing the controls to be used in the GUI I want to store the reports that the user has created. The XML would look something like this: All Records select * from main Would it be possible (or correct) to store both the controls and the reports in the same XML file (and how do I do that) or use a seperate file for the controls and reports (which would be easy)? I was trying to keep the extra files to a minimum. I would like to have one XML file store both the controls and reports, but I'm unsure as to how to setup the layout and then use the the XmlDocument object to iterate through it (and still keep a well formed document). There is no relation between the controls and reports. Any thoughts? Thanks. Any thoughts? www.lovethosetrains.com

    I M 2 Replies Last reply
    0
    • T therealmccoy

      I am working on a database application that I call MultiBase. The jist of the application is that it will load a database and create a GUI to interact with it. The application also impliments search and reporting capabilities. The application is currently a winform application, but I plan on implimenting a web interface at a later date. Currently when I select the database to use my application looks for an associated XML file that defines the controls, associated database fields, etc, to be used to create the GUI. The XML looks like this: ComboBox Manufacture Manufacture Manufactures 1 1 1 Select/Enter a manufacturer TextBox Part Number Part_Number 1 2 2 Enter part number In addition to storing the controls to be used in the GUI I want to store the reports that the user has created. The XML would look something like this: All Records select * from main Would it be possible (or correct) to store both the controls and the reports in the same XML file (and how do I do that) or use a seperate file for the controls and reports (which would be easy)? I was trying to keep the extra files to a minimum. I would like to have one XML file store both the controls and reports, but I'm unsure as to how to setup the layout and then use the the XmlDocument object to iterate through it (and still keep a well formed document). There is no relation between the controls and reports. Any thoughts? Thanks. Any thoughts? www.lovethosetrains.com

      I Offline
      I Offline
      IamJunk
      wrote on last edited by
      #2

      You can try some thing like this... ComboBox Manufacture Manufacture Manufactures 1 1 1 Select/Enter a manufacturer TextBox Part Number Part_Number 1 2 2 Enter part number All Records select * from main This gives more flexibility, in that you can associate one or more reports to a single form/database... Hope this helps!!!


      Regards, Sidhu IF YOU DON'T HAVE ANYTHING TO SAY, WELCOME TO THE CLUB Dotnet @ Work Where Dotnet works... My Blog

      1 Reply Last reply
      0
      • T therealmccoy

        I am working on a database application that I call MultiBase. The jist of the application is that it will load a database and create a GUI to interact with it. The application also impliments search and reporting capabilities. The application is currently a winform application, but I plan on implimenting a web interface at a later date. Currently when I select the database to use my application looks for an associated XML file that defines the controls, associated database fields, etc, to be used to create the GUI. The XML looks like this: ComboBox Manufacture Manufacture Manufactures 1 1 1 Select/Enter a manufacturer TextBox Part Number Part_Number 1 2 2 Enter part number In addition to storing the controls to be used in the GUI I want to store the reports that the user has created. The XML would look something like this: All Records select * from main Would it be possible (or correct) to store both the controls and the reports in the same XML file (and how do I do that) or use a seperate file for the controls and reports (which would be easy)? I was trying to keep the extra files to a minimum. I would like to have one XML file store both the controls and reports, but I'm unsure as to how to setup the layout and then use the the XmlDocument object to iterate through it (and still keep a well formed document). There is no relation between the controls and reports. Any thoughts? Thanks. Any thoughts? www.lovethosetrains.com

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        Have you seen MyXaml[^]? It does xml object graph instantiation (declarative programming) for generating GUI's, etc., and as a general reflection instantiator, you can create your own classes to support your reporting needs in the same xml file. Marc My website
        Latest Articles: Object Comparer String Helpers

        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