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. What do you guys use to parse XML?

What do you guys use to parse XML?

Scheduled Pinned Locked Moved C / C++ / MFC
c++comxmlquestion
9 Posts 8 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.
  • B Offline
    B Offline
    BadJerry
    wrote on last edited by
    #1

    I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.

    M P J R A 6 Replies Last reply
    0
    • B BadJerry

      I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      I only use very simple XML files, so I rolled my own parser. It's only a simple read text file into memory and split out the tokens but it does the job. The MSXML com object (if that is the one you mean), is okay but a little overkill for the simple files I use. Michael 'Logic, my dear Zoe, merely enables one to be wrong with authority.' - The Doctor: The Wheel in Space

      1 Reply Last reply
      0
      • B BadJerry

        I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.

        P Offline
        P Offline
        Peter Mares
        wrote on last edited by
        #3

        I deal with "simple" XML files, ie, no specific schemas etc.. so I also rolled my own parser and it saving and loading up of any XML file... The MSXML object is awesome, but on startup requires like 16 Mb of member immediately... so its resource heavy...


        www.kinkycode.com [Glossary Manager] [AfterThought Backup Lite] 99 little bugs in the code, 99 little bugs, Fix 1 bug, recompile.... 101 little bugs in the code...

        1 Reply Last reply
        0
        • B BadJerry

          I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          I also thought I could write my own parser, but then decided to use the CMarkup/CMarkupSTL[^] class. Its cheap, it works and I got enough to do anyway.


          Who is 'General Failure'? And why is he reading my harddisk?!?

          1 Reply Last reply
          0
          • B BadJerry

            I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.

            R Offline
            R Offline
            Ryan_Roberts
            wrote on last edited by
            #5

            I make pretty heavy use of XML, including schema's and suchlike. The library I use is Arabica (http://sourceforge.net/projects/arabica/[^]). Its a thin wrapper for MSXML,libxml and expat, the interface is pleasant to work with, unlike the underlying libraries. Portable too. Ryan.

            1 Reply Last reply
            0
            • B BadJerry

              I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.

              A Offline
              A Offline
              Atlantys
              wrote on last edited by
              #6

              Like someone posted earlier, try using CMarkup. I have a pretty simple XML settings file, which I read, and CMarkup works perfectly for my needs. The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices. [Roger Wright on stupid people] We're like private member functions [John Theal on R&D] We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know... [Nitron]

              1 Reply Last reply
              0
              • B BadJerry

                I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.

                L Offline
                L Offline
                LozEvans
                wrote on last edited by
                #7

                I have used Xerces-C++ which is very painless to use in practise. Cheers Loz

                M 1 Reply Last reply
                0
                • L LozEvans

                  I have used Xerces-C++ which is very painless to use in practise. Cheers Loz

                  M Offline
                  M Offline
                  melwyn
                  wrote on last edited by
                  #8

                  Where is it available and is it free?

                  L 1 Reply Last reply
                  0
                  • M melwyn

                    Where is it available and is it free?

                    L Offline
                    L Offline
                    LozEvans
                    wrote on last edited by
                    #9

                    Hiya, It is free, try http://xml.apache.org/xerces-c/download.cgi Have fun Cheers Loz

                    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