Author Topic: TinyXML Branch Ready for Testing  (Read 1234 times)

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
TinyXML Branch Ready for Testing
« on: 23 June 2009, 04:24:50 »
You should be able to play a single player game with TinyXML now with the tinyxml branch from https://glestae.svn.sourceforge.net/svnroot/glestae/branches/tinyxml .

You will need to get TinyXML from http://www.grinninglizard.com/tinyxml/ and compile the STL project and add #define TIXML_USE_STL to the top of tinyxml.h .

I've done up some tests if people want to try. Modify the xml and see if the errors are what you expect.

====Tests
Normal:
- load an xml file (starting a game), includes one that has comments (ie air_ballista.xml)
- file with no doctype (should still work)
- try different spacing, it shouldn't matter
- text in between tags (probably won't do anything in Glest) (eg. <element> text </element> )

Error:
- bad attribute: no value and quotes (but with the equals)
- multiple root elements
- bad element: no ending tag bug has starting tag
- bad element: no starting tag but has ending tag
- empty file (or with some text but not xml) (not really an error but Glest wants particular elements to be present)
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: TinyXML Branch Ready for Testing
« Reply #1 on: 23 June 2009, 08:10:20 »
I've done up some tests if people want to try. Modify the xml and see if the errors are what you expect.

Sweet, I'll have a crack at it, I'm good at breaking things :)
Glest Advanced Engine - Code Monkey

Timeline | Downloads