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. save and load in XML

save and load in XML

Scheduled Pinned Locked Moved C / C++ / MFC
c++xmltutorialquestion
5 Posts 5 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.
  • N Offline
    N Offline
    nattyting
    wrote on last edited by
    #1

    may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks

    CPalliniC H S T 4 Replies Last reply
    0
    • N nattyting

      may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks

      CPalliniC Online
      CPalliniC Online
      CPallini
      wrote on last edited by
      #2

      You may use MSXML. Samples here [^]. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • N nattyting

        may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks

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

        Yeah see this link ;) Read and Write application parameters in XML[^].

        1 Reply Last reply
        0
        • N nattyting

          may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks

          S Offline
          S Offline
          Sandeep Saini SRE
          wrote on last edited by
          #4

          This may help Don't forget to write this line :) #import <msxml.dll> // The XML DOM

          try
          {
          CString sQueryXML = "<start><sometag></sometag></end>";
          CString sFileName;
          sFileName.Format("%s","C:\\MyXml.xml");
          MSXML::IXMLDOMDocumentPtr pDoc(__uuidof(MSXML::DOMDocument));
          pDoc->async = false;
          pDoc->loadXML((LPCSTR) sQueryXML);
          pDoc->save((LPCSTR) sFileName);
          }
          catch(_com_error e)
          {
          ASSERT(false);
          }

          1 Reply Last reply
          0
          • N nattyting

            may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            serach tinyXML in google ..

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

            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