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. C / C++ / MFC
  4. Xml in C++

Xml in C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++xmlquestion
8 Posts 6 Posters 1 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.
  • A Offline
    A Offline
    Anka_Ame
    wrote on last edited by
    #1

    Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!

    D J P H 4 Replies Last reply
    0
    • A Anka_Ame

      Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Have you tried TinyXML?


      "A good athlete is the result of a good and worthy opponent." - David Crow

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      1 Reply Last reply
      0
      • A Anka_Ame

        Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!

        J Offline
        J Offline
        James R Twine
        wrote on last edited by
        #3

        I think it might help to know exactly what you need to do with the XML file after loading it.  Do you need to parse it and extract data, add/modify data to it, or simply render (display) it in some way?    Also, you mention "window form", which is damn close to "windows forms", which sounds .NET-ish.  If you are asking how to do this on the .NET platform, I suggest asking with more details in a .NET-specific forum (like the C# forum).    Peace!

        -=- James
        Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
        Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
        See DeleteFXPFiles

        A G 2 Replies Last reply
        0
        • J James R Twine

          I think it might help to know exactly what you need to do with the XML file after loading it.  Do you need to parse it and extract data, add/modify data to it, or simply render (display) it in some way?    Also, you mention "window form", which is damn close to "windows forms", which sounds .NET-ish.  If you are asking how to do this on the .NET platform, I suggest asking with more details in a .NET-specific forum (like the C# forum).    Peace!

          -=- James
          Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          See DeleteFXPFiles

          A Offline
          A Offline
          Anka_Ame
          wrote on last edited by
          #4

          I need to extract data from the Xml file.

          G 1 Reply Last reply
          0
          • J James R Twine

            I think it might help to know exactly what you need to do with the XML file after loading it.  Do you need to parse it and extract data, add/modify data to it, or simply render (display) it in some way?    Also, you mention "window form", which is damn close to "windows forms", which sounds .NET-ish.  If you are asking how to do this on the .NET platform, I suggest asking with more details in a .NET-specific forum (like the C# forum).    Peace!

            -=- James
            Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
            Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
            See DeleteFXPFiles

            G Offline
            G Offline
            George L Jackson
            wrote on last edited by
            #5

            Actually, the C++/CLI forum might be what this poster wants.

            "We make a living by what we get, we make a life by what we give." --Winston Churchill

            1 Reply Last reply
            0
            • A Anka_Ame

              I need to extract data from the Xml file.

              G Offline
              G Offline
              George L Jackson
              wrote on last edited by
              #6

              If you are using .NET and C++/CLI, you can use the System.Xml namespace to access classes such as XmlDocument and XmlReader to extract XML from a file. If you are using "native" Visual C++, you can use MSXML or XmlLite from Microsoft. Except for XmlLite, there are a lot of articles on Code Project and other sites (Can you Google?). XmlLite is new but their is an article about this or last month's MSDN Magazine. Example code for MSXML is not very plentiful also.

              "We make a living by what we get, we make a life by what we give." --Winston Churchill

              1 Reply Last reply
              0
              • A Anka_Ame

                Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!

                P Offline
                P Offline
                Paresh Chitte
                wrote on last edited by
                #7

                For reading XML file, you need a parser (for eg. MSXML). Get MSXML download from Microsoft. Refer this[^]. Regards, Paresh.

                1 Reply Last reply
                0
                • A Anka_Ame

                  Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  See A simple STL based XML parser[^] and http://www.codeguru.com/Cpp/I-N/ieprogram/displayinginformation/article.php/c10923[^] if helpfuls


                  WhiteSky


                  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