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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. XML lib?

XML lib?

Scheduled Pinned Locked Moved The Lounge
c++htmlcombusinessxml
26 Posts 17 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.
  • T Offline
    T Offline
    Tom Archer
    wrote on last edited by
    #1

    In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

    D N S S N 13 Replies Last reply
    0
    • T Tom Archer

      In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Try MSXML. Virtually all Windows machines have it now. Tom Archer wrote: just forward sequential access. aka "SAX Parser" :) I see dead pixels Yes, even I am blogging now!

      T 1 Reply Last reply
      0
      • T Tom Archer

        In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

        N Offline
        N Offline
        Nemanja Trifunovic
        wrote on last edited by
        #3

        You should read this book[^] and see how to use XmlReader. Oh, wait :doh: Nevermind... Look at this[^] for instance.


        My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

        D M T 3 Replies Last reply
        0
        • N Nemanja Trifunovic

          You should read this book[^] and see how to use XmlReader. Oh, wait :doh: Nevermind... Look at this[^] for instance.


          My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

          D Offline
          D Offline
          Daniel Turini
          wrote on last edited by
          #4

          Nemanja Trifunovic wrote: You should read this book[^] and see how to use XmlReader. Ouch! That was low... :) I see dead pixels Yes, even I am blogging now!

          1 Reply Last reply
          0
          • T Tom Archer

            In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

            S Offline
            S Offline
            stephen hazel
            wrote on last edited by
            #5

            xml is VERY easy to parse. i just wrote a "sorta hardcoded" func for a C database app i did a while ago... it parsed a "record" at a time into columns of strings. about 1.5 days to code and a little under a day to unit test. ...Steve

            D 1 Reply Last reply
            0
            • N Nemanja Trifunovic

              You should read this book[^] and see how to use XmlReader. Oh, wait :doh: Nevermind... Look at this[^] for instance.


              My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

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

              Nemanja Trifunovic wrote: You should read this book[^] and see how to use XmlReader. ROFLMAO. Classic. It's times like this, I wish I could vote twice for a post. Michael CP Blog [^] Development Blog [^]

              1 Reply Last reply
              0
              • T Tom Archer

                In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                S Offline
                S Offline
                Scott Lee
                wrote on last edited by
                #7

                This is my favorite. http://www.codeproject.com/soap/markupclass.asp

                D 1 Reply Last reply
                0
                • S stephen hazel

                  xml is VERY easy to parse. i just wrote a "sorta hardcoded" func for a C database app i did a while ago... it parsed a "record" at a time into columns of strings. about 1.5 days to code and a little under a day to unit test. ...Steve

                  D Offline
                  D Offline
                  Daniel Turini
                  wrote on last edited by
                  #8

                  And then, someone puts a comment, a processing instruction or an entity and your parser stops working. XML is not easy to parse. I see dead pixels Yes, even I am blogging now!

                  S D 2 Replies Last reply
                  0
                  • S Scott Lee

                    This is my favorite. http://www.codeproject.com/soap/markupclass.asp

                    D Offline
                    D Offline
                    David Wulff
                    wrote on last edited by
                    #9

                    I agree, I've used that more times than I can remember. Just drop in and use. :cool:


                    Ðavid Wulff The Royal Woofle Museum
                    Audioscrobbler :: flikr

                    Die Freiheit spielt auf allen Geigen

                    T 1 Reply Last reply
                    0
                    • D Daniel Turini

                      And then, someone puts a comment, a processing instruction or an entity and your parser stops working. XML is not easy to parse. I see dead pixels Yes, even I am blogging now!

                      S Offline
                      S Offline
                      stephen hazel
                      wrote on last edited by
                      #10

                      well, it's plenty easy to skip over stuff you don't recognize and keep working.

                      1 Reply Last reply
                      0
                      • D Daniel Turini

                        And then, someone puts a comment, a processing instruction or an entity and your parser stops working. XML is not easy to parse. I see dead pixels Yes, even I am blogging now!

                        D Offline
                        D Offline
                        DavidNohejl
                        wrote on last edited by
                        #11

                        Daniel Turini wrote: XML is not easy to parse. Still it seems to be far easier than parsing real-world HTML. :sigh: David Never forget: "Stay kul and happy" (I.A.)
                        David's thoughts / dnhsoftware.org / MyHTMLTidy

                        1 Reply Last reply
                        0
                        • T Tom Archer

                          In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                          N Offline
                          N Offline
                          Navin
                          wrote on last edited by
                          #12

                          Expat[^] is a good choice. I have had mixed experiences with MSXML - not all machine have it (although most recent machines should), and I've heard of it having memory leaks. But if you are doing something simple, that might not be an issue. The generation of random numbers is too important to be left to chance.

                          T 1 Reply Last reply
                          0
                          • D Daniel Turini

                            Try MSXML. Virtually all Windows machines have it now. Tom Archer wrote: just forward sequential access. aka "SAX Parser" :) I see dead pixels Yes, even I am blogging now!

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

                            Yep. In fact, I've written articles on using this. However, I'm not sure of the issues regarding distribution and whether or not the person is using IE and so on. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                            1 Reply Last reply
                            0
                            • N Nemanja Trifunovic

                              You should read this book[^] and see how to use XmlReader. Oh, wait :doh: Nevermind... Look at this[^] for instance.


                              My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

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

                              Funny guy :) Actually, expat was the library I had heard of before and couldn't recall its name. Thanks Nemanja. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                              1 Reply Last reply
                              0
                              • N Navin

                                Expat[^] is a good choice. I have had mixed experiences with MSXML - not all machine have it (although most recent machines should), and I've heard of it having memory leaks. But if you are doing something simple, that might not be an issue. The generation of random numbers is too important to be left to chance.

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

                                Thanks Navin. I've used - and written about - MSXML, but I don't know the distro issue regarding people that are not using IE so I was hoping for a 3rd party solution. Expat was what I was looking for as I had heard it before, but couldn't recall its name. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                                1 Reply Last reply
                                0
                                • D David Wulff

                                  I agree, I've used that more times than I can remember. Just drop in and use. :cool:


                                  Ðavid Wulff The Royal Woofle Museum
                                  Audioscrobbler :: flikr

                                  Die Freiheit spielt auf allen Geigen

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

                                  Seems to address the very issue I'm trying to - avoiding complex distro issues. Thanks to you both. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                                  1 Reply Last reply
                                  0
                                  • T Tom Archer

                                    In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                                    R Offline
                                    R Offline
                                    Ralph Wetzel
                                    wrote on last edited by
                                    #17

                                    Try TinyXML ... easy & good & free! std::string or CString, no MFC dependencies ... small ... what else do you need ? You can find it here![^] Greetings, Ralph

                                    1 Reply Last reply
                                    0
                                    • T Tom Archer

                                      In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                                      M Offline
                                      M Offline
                                      Michael A Barnhart
                                      wrote on last edited by
                                      #18

                                      From the MS site redistribution is fairly clear. MSXML Download and redist[^] you have several options Instructions There are four options for downloading MSXML 4.0 Service Pack 2 (SP2): Use msxml.msi to install MSXML 4.0 SP2 and the SDK on your computer. You may also save msxml.msi to your local disk to install later. The MSXML 4.0 SP2 SDK is not installed by default. You must select the custom install option to install the SDK. Use msxmlsdk.exe to download the redistributable merge module xmlsdk4.msm to distribute with your setup application. Include msxml4sxs32.msm and msxm4sys32.msm in your msi installer. To get these files run msxml4msms.exe. For more information about packaging these msm files, see the release notes. Use msxmlcab.exe to download the CAB file to redistribute MSXML over the Internet. Another option is Simon Fell's PocketSoap[^] I do not mind getting old. It beats all the other options that can think of.

                                      T 1 Reply Last reply
                                      0
                                      • T Tom Archer

                                        In a current client's native MFC application, I'm moving his data to XML format. Can anyone recommend a very easy-to-use XML API for reading the data. I don't need full DOM support; just forward sequential access. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                                        S Offline
                                        S Offline
                                        Stuart van Weele
                                        wrote on last edited by
                                        #19

                                        We use CMarkup from these guys: http://www.firstobject.com/index.html[^] The API is very small and easy to use.

                                        1 Reply Last reply
                                        0
                                        • M Michael A Barnhart

                                          From the MS site redistribution is fairly clear. MSXML Download and redist[^] you have several options Instructions There are four options for downloading MSXML 4.0 Service Pack 2 (SP2): Use msxml.msi to install MSXML 4.0 SP2 and the SDK on your computer. You may also save msxml.msi to your local disk to install later. The MSXML 4.0 SP2 SDK is not installed by default. You must select the custom install option to install the SDK. Use msxmlsdk.exe to download the redistributable merge module xmlsdk4.msm to distribute with your setup application. Include msxml4sxs32.msm and msxm4sys32.msm in your msi installer. To get these files run msxml4msms.exe. For more information about packaging these msm files, see the release notes. Use msxmlcab.exe to download the CAB file to redistribute MSXML over the Internet. Another option is Simon Fell's PocketSoap[^] I do not mind getting old. It beats all the other options that can think of.

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

                                          Thanks Michael, I'm actually using the MSXML parser now but was concerned about destro. This is for an anti-spyware app so I just need the ability distribute the runtime files - not the SDK - so I'll have a look at that page in regards to that. Cheers, Tom Archer - Archer Consulting Group Programmer Trainer and Mentor and Project Management Consultant

                                          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