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. C++ msxml tutorials

C++ msxml tutorials

Scheduled Pinned Locked Moved XML / XSL
c++htmlcomdata-structuresxml
10 Posts 4 Posters 30 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
    Todd Harvey
    wrote on last edited by
    #1

    here are two great links for beginning DOM programming in C++: http://codeguru.earthweb.com/xml/XMLDOMFromVC.html - a basic, great tutorial microsoft http://msdn.microsoft.com/Downloads/samples/Internet/ select xml, and I think the MFC tree control is the XMLTree simple application.

    T 2 Replies Last reply
    0
    • T Todd Harvey

      here are two great links for beginning DOM programming in C++: http://codeguru.earthweb.com/xml/XMLDOMFromVC.html - a basic, great tutorial microsoft http://msdn.microsoft.com/Downloads/samples/Internet/ select xml, and I think the MFC tree control is the XMLTree simple application.

      T Offline
      T Offline
      Tom Archer
      wrote on last edited by
      #2

      Thanks Todd! The first one is mine :) I've never posted it here because it wrote it so long ago that I figured it was probably too beginner-level at this point. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

      C T 2 Replies Last reply
      0
      • T Tom Archer

        Thanks Todd! The first one is mine :) I've never posted it here because it wrote it so long ago that I figured it was probably too beginner-level at this point. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Tom, I don't suppose you have any idea what my problem is with appendChild not working ? I posted the question above this one, and I'm kinda desperate ... :-O Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

        T 2 Replies Last reply
        0
        • C Christian Graus

          Tom, I don't suppose you have any idea what my problem is with appendChild not working ? I posted the question above this one, and I'm kinda desperate ... :-O Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

          T Offline
          T Offline
          Tom Archer
          wrote on last edited by
          #4

          I'll look now... Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

          1 Reply Last reply
          0
          • C Christian Graus

            Tom, I don't suppose you have any idea what my problem is with appendChild not working ? I posted the question above this one, and I'm kinda desperate ... :-O Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

            T Offline
            T Offline
            Tom Archer
            wrote on last edited by
            #5

            By the way, Christopher is all impressed with himself that you're quoting him in your sig :) Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

            C C 2 Replies Last reply
            0
            • T Todd Harvey

              here are two great links for beginning DOM programming in C++: http://codeguru.earthweb.com/xml/XMLDOMFromVC.html - a basic, great tutorial microsoft http://msdn.microsoft.com/Downloads/samples/Internet/ select xml, and I think the MFC tree control is the XMLTree simple application.

              T Offline
              T Offline
              Tom Archer
              wrote on last edited by
              #6

              Actually, I've updated that tutorial a great deal for an XML chapters I just did for my MFC book. I'll post it some time this weekend. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

              1 Reply Last reply
              0
              • T Tom Archer

                Thanks Todd! The first one is mine :) I've never posted it here because it wrote it so long ago that I figured it was probably too beginner-level at this point. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

                T Offline
                T Offline
                Todd Harvey
                wrote on last edited by
                #7

                you know, I've had so much trouble with path syntax and checking if GetNode type statements returned null or not, that I started putting together my own short list of XML "stuff", but it hasn't really evolved into a useful tutorial. The hardest thing for me is still that "I just want to get data out like it was Access or a *.ini file, or a flat file", and the XML DOM sometimes seems to make what should be easy , difficult. (once it works it is fantastic) Your tutorial was very helpful to me and my current project - I started out attempting something like what was in C++ Journal in the January issue , where I specify all the structs/variables for our project in XML, and then I generate the C++ code from that, I generate the C++ code in to read all the variables and populate the structs from the XML file, I change an MFC dialog on the fly to get or set variables in the data in my config screen. I started thinking at the beginning - here I have these different ways of formatting what is essentially the same data - I have C++ code, I have *.h include files, I need *.ini files, I need to edit my MFC dialog - why can't I just feed it all off the XML and use that to unify these various data structures? I got it working, but explaining it to our engineers has got me to back off from trying to force them to use the generating features. But it is still very handy to have C++ code plus the min/max validation data, the comments that explain what that variable is, the list of potential values, etc. all in one place. Someday somebody is going to make some money by providing a tool where we can specify data in XML, because when a guy creates a new variable, if he knows what the max/min values are to be, wouldn't be great if he could spell all that out in one place, and then it would be useable in his program, and all the other developers were doing the same thing, and multiple variables weren't created for the same purpose, etc. Oh well, sorry for the long text. I could not live without the tutorials at CodeGuru and CodeProject (at least as a Windows/MFC developer). Your tutorial was very easy to understand and helpful. :laugh:

                T 1 Reply Last reply
                0
                • T Tom Archer

                  By the way, Christopher is all impressed with himself that you're quoting him in your sig :) Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  Tom Archer wrote: By the way, Christopher is all impressed with himself that you're quoting him in your sig I wanted to as soon as he said it, but I'd only just changed it, so I kept Jamies comment for a bit, then went back in the posts to find this one again. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

                  1 Reply Last reply
                  0
                  • T Tom Archer

                    By the way, Christopher is all impressed with himself that you're quoting him in your sig :) Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

                    C Offline
                    C Offline
                    Christopher Duncan
                    wrote on last edited by
                    #9

                    Tom Archer wrote: By the way, Christopher is all impressed with himself that you're quoting him in your sig Hey, I've gotta find somebody that's impressed with me, and I was closest... Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                    1 Reply Last reply
                    0
                    • T Todd Harvey

                      you know, I've had so much trouble with path syntax and checking if GetNode type statements returned null or not, that I started putting together my own short list of XML "stuff", but it hasn't really evolved into a useful tutorial. The hardest thing for me is still that "I just want to get data out like it was Access or a *.ini file, or a flat file", and the XML DOM sometimes seems to make what should be easy , difficult. (once it works it is fantastic) Your tutorial was very helpful to me and my current project - I started out attempting something like what was in C++ Journal in the January issue , where I specify all the structs/variables for our project in XML, and then I generate the C++ code from that, I generate the C++ code in to read all the variables and populate the structs from the XML file, I change an MFC dialog on the fly to get or set variables in the data in my config screen. I started thinking at the beginning - here I have these different ways of formatting what is essentially the same data - I have C++ code, I have *.h include files, I need *.ini files, I need to edit my MFC dialog - why can't I just feed it all off the XML and use that to unify these various data structures? I got it working, but explaining it to our engineers has got me to back off from trying to force them to use the generating features. But it is still very handy to have C++ code plus the min/max validation data, the comments that explain what that variable is, the list of potential values, etc. all in one place. Someday somebody is going to make some money by providing a tool where we can specify data in XML, because when a guy creates a new variable, if he knows what the max/min values are to be, wouldn't be great if he could spell all that out in one place, and then it would be useable in his program, and all the other developers were doing the same thing, and multiple variables weren't created for the same purpose, etc. Oh well, sorry for the long text. I could not live without the tutorials at CodeGuru and CodeProject (at least as a Windows/MFC developer). Your tutorial was very easy to understand and helpful. :laugh:

                      T Offline
                      T Offline
                      Tom Archer
                      wrote on last edited by
                      #10

                      Todd.Harvey wrote: I just want to get data out like it was Access or a *.ini file, or a flat file", and the XML DOM sometimes seems to make what should be easy , difficult Now that's an understatement :) Todd.Harvey wrote: Your tutorial was very easy to understand and helpful Thanks! I'll give some thought to your other remarks as you might be onto something there... Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.

                      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