Page 1 of 1

Bug in XML parser with linux and 0.5.0

Posted: Fri Mar 02, 2007 00:31
by vinvin
I have this error I can't understand while loading TaharezLook.scheme:

02/03/2007 00:58:11 (InfL1) ---- CEGUI System initialisation completed ----
02/03/2007 00:58:11 (InfL1) ---- Version 0.5.0 ----
02/03/2007 00:58:11 (InfL1) ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
02/03/2007 00:58:11 (InfL1) ---- XML Parser module is: CEGUI::XercesParser - Official Xerces-C++ based parser module for CEGUI ----
02/03/2007 00:58:11 (InfL1) ---- Scripting module is: None ----
02/03/2007 00:58:11 (InfL1) Attempting to load Scheme from file 'TaharezLook.scheme'.
02/03/2007 00:58:11 (InfL1) XercesParser::initialiseSchema - Attempting to load schema from file 'GUIScheme.xsd'.
02/03/2007 00:58:12 (InfL1) XercesParser::initialiseSchema - XML schema file 'GUIScheme.xsd' has been initialised.
02/03/2007 01:06:28 (Error) Exception: XercesParser::parseXMLFile - An error occurred at line nr. 11 while parsing XML file 'TaharezLook.scheme'. Additional information: Unknown element 'WindowRendererSet'
02/03/2007 01:06:28 (Error) Scheme::Scheme - loading of Scheme from file 'TaharezLook.scheme' failed.

Why the hell doesn't he knows WindowRendererSet ?
- WindowRendererSet is well defined in CEGUIScheme_xmlHandler.cpp
- the 11th line of TaharezLook.scheme is not that at all, WindowRendererSet is on the 5th and the 11th is the Titlebar.
- I'm using a just recompiled CEGUI from 0.5.0 release.
- It is used in an Ogre3D program, with OgreCEGUIRenderer, all are up to date.

I tried to gdb in the parser to see why it does that, I could only get to CEGUI::XercesParser::doParse (...) at CEGUIXercesParser.cpp:279, gdb doesn't have information to go deeper, in the parse() function.

Is there a special libxml version needed ? (I guess ./configure would have screamed)

Please help, it's driving me nuts :(

Posted: Fri Mar 02, 2007 11:17
by Dalfy
Have you check the version of the XSD files are they the sames as the one in the XMLRefSchema dir of CEGUI ?

Is there a special libxml version needed ? (I guess ./configure would have screamed)

You are using Xerces so libxml is not even use ! You can select the parser you want through the configure script option ?

There was error in the CEGUI-0.5.0 version when using Xerces are you using package CEGUI-0.5.0b ?

Posted: Fri Mar 02, 2007 13:25
by vinvin
I don't know right now for the XSD files, I can't check. I don't even know where they are btw.

I don't specially want to change the parser, but if xerces doesn't work, I will :) I thought libxml or something was used.

I think this is 0.5.0b indeed, as it comes from here : ... oads_0.5.0 (the first link)

Posted: Sat Mar 03, 2007 01:31
by vinvin
You were right, the XSD files were not up to date, because they are not used in Windows, and the program was working fine.
It is good now.
Sorry :(