It is currently Tue Oct 24, 2017 2:32 am

All times are UTC - 5 hours




 Page 1 of 1 [ 7 posts ] 
Author Message
 Post subject:
PostPosted: Thu May 17, 2007 5:36 am 

Joined: Tue May 01, 2007 2:55 pm
Posts: 96
Location: Behind you
I was thinking of using xml in one of my projects, but I am not sure how import the data from the xml files yet.



Of course it would be possible to write your own code to make something out of the inputstream. However I think there must be good libraries that can do this for you, and thus take the work out of your hands. So I wondered, does anybody know a good library for this?


Offline
 Profile  
 
 Post subject: Re: XML library
PostPosted: Thu May 17, 2007 1:45 pm 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
I did a search on google, and this is what I came up with. I have not used either of these but they look like they will do the trick for you.

http://libxmlplusplus.sourceforge.net/
http://www.awprofessional.com/articles/article.asp?p=100670&seqNum=3&rl=1


Last edited by Marek on Sat Dec 06, 2008 7:57 am, edited 1 time in total.

Offline
 Profile  
 
 Post subject: Re: XML library
PostPosted: Fri May 18, 2007 7:27 am 

Joined: Tue May 01, 2007 2:55 pm
Posts: 96
Location: Behind you
Ah thanks, I tried google myself, but wasn't able to come up with results as good as yours.



I am a bit of perfectionist, so I prefer not to use .NET (not every computers has it installed + it's not cross-platform compatible). But libxml++ looks really promising.


Offline
 Profile  
 
 Post subject: Re: XML library
PostPosted: Fri Jun 15, 2007 7:51 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
Here is another XML library that I just found: http://www.grinninglizard.com/tinyxml/



 


Offline
 Profile  
 
 Post subject: XML libraries here and there
PostPosted: Sat Dec 06, 2008 3:32 am 

Joined: Wed Aug 06, 2008 7:53 pm
Posts: 182
Location: Russia
I hope you know that site. A quick search there gave me following links:

(XML: Include a Flexible Parser in Your C++ Applications) http://www.codeproject.com/KB/recipes/F ... arser.aspx


(XML file/stream processing) http://www.codeproject.com/KB/XML/XMJFileStreaming.aspx


(PugXML - A Small, Pugnacious XML Parser) http://www.codeproject.com/KB/cpp/pugxml.aspx


(UTF-8 encoded XML file/stream processing) http://www.codeproject.com/KB/XML/LymXM8.aspx


(XMLite: simple XML parser.) http://www.codeproject.com/KB/recipes/xmlite.aspx


Offline
 Profile  
 
 Post subject: An updated list of cross-platform C/C++ XML libraries
PostPosted: Mon Jul 13, 2009 8:21 am 

Joined: Wed Aug 06, 2008 7:53 pm
Posts: 182
Location: Russia
Hi.

I would like to share my updated list of (free) cross-platform C/C++ XML libraries (there might be some repeats, so be patient and merciful ;) )
Btw, an important article on XML is here: http://en.wikipedia.org/wiki/XML

One of the most representative lists of XML parsers is on the wiki (at the moment 17 items in total, yet some of them for Java and other languages.):
http://en.wikipedia.org/wiki/Category:XML_parsers


Especially interesting are the following libs:


• The Expat XML Parser (written in pure C)
http://expat.sourceforge.net/
• C++ Wrappers for the Expat XML Parser
http://www.codeproject.com/KB/XML/expatimpl.aspx


• libxml: the XML C parser and toolkit of Gnome
http://www.xmlsoft.org/
• libxml++ is a C++ wrapper for the libxml XML parser library.
http://libxmlplusplus.sourceforge.net/


• Xerces-C++ XML parser (APACHE XML project)
http://xerces.apache.org/xerces-c/


• Aforementioned TinyXML
http://www.grinninglizard.com/tinyxml/


• XML++
http://www.turboirc.com/xml/
• (its CodeProject’s page)
http://www.codeproject.com/KB/recipes/FlexibleParser.aspx


• ACEXML - A Small and Portable XML Parser (supported by Distributed Object Computing (DOC) Group and part of the ACE architecture)
http://www.dre.vanderbilt.edu/Doxygen/Stable/acexml/index.html


• Following project is about UPnP but also contains XML parser as a part of the project:
• Portable SDK for UPnP Devices
http://pupnp.sourceforge.net/


• Nice pugixml - light-weight, simple and fast XML parser for C++, heavily refactored/reworked version of PugXML:
http://code.google.com/p/pugixml/


• And at the end, my favorite - rapidxml
http://rapidxml.sourceforge.net/
http://en.wikipedia.org/wiki/Rapidxml
http://rapidxml.sourceforge.net/manual.html
• Imho, the rapidxml is the most suitable for game projects since it is very fast (the fastest!), very small, and can be easily integrated in your app.
Quote:
* Integration with your project will be trivial, because entire library is contained in a single header file, and requires no building or configuration.
* As a rule of thumb, parsing speed is about 50-100x faster than Xerces DOM, 30-60x faster than TinyXml, 3-12x faster than pugxml, and about 5% - 30% faster than pugixml, the fastest XML parser I know of.



Enjoy! 8)


Offline
 Profile  
 
 Post subject:
PostPosted: Sun Aug 02, 2009 4:12 pm 

Joined: Fri Jan 04, 2008 2:11 pm
Posts: 72
are xml files like object oriented notepad file ??


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron