Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Omikron

XML parser

This topic is 5529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I use something called tiny xml. some simple classes that parses xml for you... it cannot handle all the fancy extra stuff that xml is about, but it is a minimal lib for parsing the tree structure with the data. enough for games i''d say.

Share this post


Link to post
Share on other sites
Oh come on, be a real man / woman and write your own. I hammered one out in an afternoon, and it only took 150 lines.

Share this post


Link to post
Share on other sites
quote:
Original post by Ishan
Oh come on, be a real man / woman and write your own. I hammered one out in an afternoon, and it only took 150 lines.

DOM or SAX? What access functionality does it allow? What''s performance like?

Want to post code?



[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

Share this post


Link to post
Share on other sites
MSXML seems good and is well tested, supports both SAX and DOM.

As for writing your own, well, I disagree, I don''t think Microsoft wrote MSXML in an afternoon!

Share this post


Link to post
Share on other sites
Sure, reinventing the wheel might not be too hard, but using one already invented will probably be rounder and roll faster ;-D

Share this post


Link to post
Share on other sites
expat (http://www.jclark.com/xml/expat.html) is good and fast, specially if you want to parse big files. LibXML is very good too.
Both are in C, so you might want to use one of the C++ wrapper available.

Nico

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!