Thread: Parsing XML in C++

  1. #1
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438

    Parsing XML in C++

    What is the most used library for parsing XML in C++?

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    I did a quick search, these two look alright:
    http://xml.apache.org/xerces-c/
    http://www.perfectxml.com/soft.asp?cat=5
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    50
    You might also want to check out TinyXML.
    TinyXml is a simple, small, C++ XML parser that can be easily integrating into other programs.

    The URL is: http://www.grinninglizard.com/tinyxml/

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I'm currently looking into this myself, and am considering libxml2 with Arabica.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    And of course libxml, which is really a C library but can be used in C++. And there's a C++ wrapper.

    laserlight was faster...

    And there's Expat
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Registered User gandalf_bar's Avatar
    Join Date
    Oct 2003
    Posts
    92
    libxmlplusplus.sf.net
    A man asked, "Who are you?"
    Buddha answered, "I am awaked."

  7. #7
    Registered User subdene's Avatar
    Join Date
    Jan 2002
    Posts
    367
    Does no one use the msxml? I know its COM based the latest version. Wouldn't that do the trick?
    Be a leader and not a follower.

  8. #8
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    [plug]If you want to use MSXML, check out DispHelper, especially the xml sample.[/plug]

  9. #9
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    I should mention, I'm going to be deploying on Linux.

  10. #10
    Registered User subdene's Avatar
    Join Date
    Jan 2002
    Posts
    367
    oh well, nevermind cocker. There goes the msxml for ya. Your probably better off without it anyway.
    Be a leader and not a follower.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parsing Xml
    By deviousdexter in forum C# Programming
    Replies: 7
    Last Post: 04-24-2009, 06:29 AM
  2. Parsing XML with C without 3rd party libs
    By mike_morley in forum C Programming
    Replies: 13
    Last Post: 12-18-2008, 02:21 PM
  3. xml file parsing in C
    By lonbgeach in forum Tech Board
    Replies: 31
    Last Post: 12-14-2006, 02:14 AM
  4. XML Parsing
    By Mareq in forum C++ Programming
    Replies: 8
    Last Post: 11-09-2005, 09:20 PM
  5. XML File Parsing
    By WebSnozz in forum C++ Programming
    Replies: 0
    Last Post: 04-21-2002, 03:24 AM