[C#] Help with XML Parsing

Discussion in 'Mixed Languages' started by CODYQX4, Aug 3, 2012.

  1. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,813
    45,775
    150
    #1 CODYQX4, Aug 3, 2012
    Last edited: Apr 12, 2019
    .
     
  2. wallace87000

    wallace87000 MDL Novice

    Jan 9, 2010
    6
    3
    0
    Try to use the VAKOS XML parser :

    codeproject.com/KB/XML/XML_Configuration_File

    You can easily create xml and load xml.

    Sorry I can't give you the exact link beacause I haven't 20 posts or greater...!!!o_O
     
  3. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,813
    45,775
    150
    #3 CODYQX4, Aug 24, 2012
    Last edited: Apr 12, 2019
    (OP)
    .
     
  4. jlgager

    jlgager MDL Developer

    Oct 30, 2009
    365
    3,230
    10
    Give me a day or two and I will write up something for you. I use XML a lot with my ISO verifier and other apps.
     
  5. jlgager

    jlgager MDL Developer

    Oct 30, 2009
    365
    3,230
    10
    Sorry it took longer than I said. Here is an example and its source file. I included your xml file edited with numbers as an example. If you have any questions feel free to ask.
     

    Attached Files:

  6. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,813
    45,775
    150
    #6 CODYQX4, Aug 28, 2012
    Last edited: Apr 12, 2019
    (OP)
    .
     
  7. jlgager

    jlgager MDL Developer

    Oct 30, 2009
    365
    3,230
    10
    I am interested to see your code if you do make it open source. I am always looking for better ways to do things while coding. I'm glad I was able to start you in the right direction. Also I can't wait to use your program when it comes out. I am also going to be publishing a program soon called Windows Tech Console that will include a redesigned version of my RTM ISO Verifier, a FileHippo Installer Downloader and an Encryption Program.
     
  8. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,813
    45,775
    150
    #8 CODYQX4, Aug 30, 2012
    Last edited: Apr 12, 2019
    (OP)
    .
     
  9. jlgager

    jlgager MDL Developer

    Oct 30, 2009
    365
    3,230
    10
    Well you could always create DLL files with the functions you want to keep closed source and then import them as a resource. Then you would use the import statement for the new class then just call the functions like normal in the main code. Creating dll files is nice as you can reuse the functions in them in the future with other programs you make.