Need a XML parser in C/C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oneterence
    New Member
    • Nov 2007
    • 2

    Need a XML parser in C/C++

    Hi,

    I'm looking for a XML parser which is able to convert a C++ structure directly into a XML document in HP-UX environment, are they any around?

    Xerces-C++ or CodeSynthesis XSD able to do it?

    Thanks
  • Meetee
    Recognized Expert Contributor
    • Dec 2006
    • 928

    #2
    Originally posted by oneterence
    Hi,

    I'm looking for a XML parser which is able to convert a C++ structure directly into a XML document in HP-UX environment, are they any around?

    Xerces-C++ or CodeSynthesis XSD able to do it?

    Thanks
    I don't about those you have mentioned but I know about TinyXML which do this job very well. Here are some links for that.


    Download TinyXML for free. TinyXML is a simple, small, minimal, C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document.


    Regards

    Comment

    • jinendrashankar
      New Member
      • Nov 2007
      • 10

      #3
      Originally posted by oneterence
      Hi,

      I'm looking for a XML parser which is able to convert a C++ structure directly into a XML document in HP-UX environment, are they any around?

      Xerces-C++ or CodeSynthesis XSD able to do it?

      Thanks
      Hi

      try this code for
      use this link



      or

      xmlsoft.org/tutorial/xmltutorial.pdf

      Full code removed per Posting Guidelines

      Comment

      • xoinki
        New Member
        • Apr 2007
        • 110

        #4
        hi,
        TinyXmlParser for me..
        Its fast and very less leaky..

        Regards,
        Xoinki

        Comment

        • oneterence
          New Member
          • Nov 2007
          • 2

          #5
          TinyXML looks cool.

          So it has to be use with TinyBind to convert struct to XML?

          What about the licence? Able to be used in commercial projects?

          Thanks

          Comment

          • Meetee
            Recognized Expert Contributor
            • Dec 2006
            • 928

            #6
            Originally posted by oneterence
            TinyXML looks cool.

            So it has to be use with TinyBind to convert struct to XML?

            What about the licence? Able to be used in commercial projects?

            Thanks
            There is no licence to use tinyxml. You will be able to use the library for free.

            There are examples given in above mentioned sites for how to use it's functions. suppose the structure contains name, address and age, then you can convert them into xml structure and vice versa. I have not much idea about TinyBind.

            Regards

            Comment

            • oler1s
              Recognized Expert Contributor
              • Aug 2007
              • 671

              #7
              There is no licence to use tinyxml. You will be able to use the library for free.
              Really? You're saying it's public domain. You determined this how?

              It's actually release under the zlib license. You can determine this by a) reading the sourceforge page b) reading the docs c) downloading the source and reading the LICENSE file and d) outright googling "tinyxml license". I sincerely hope you haven't used TinyXML in your projects, in ways that do not conform to the license.

              Comment

              • gnanapoongothai
                New Member
                • Jun 2007
                • 62

                #8
                hello,
                I am also struggling with the same problem converting c structs to XML files . Could you please breif out what you did. Help to save my time instead gooling for 2-3 three days.
                Thanks in advance.

                Comment

                Working...