Page 1 of 1

Weird xml problem

Posted: Fri Nov 30, 2007 2:40 pm
by Cleves
I'm trying to create a simple XML reader but something is wrong.

I create a reader:

Code: Select all

IrrXMLReader* XmlReaderMenus = createIrrXMLReader("menus.xml");
	if(XmlReaderMenus == 0)
		printf("Init of XML Reader has failed.\n");
But it always fails, no matter what. I know for sure that the xml is there, and that it's correct format.

Code: Select all

 <?xml version="1.0" ?> 
- <menus>
  <element id="100">Strength</element> 
  </menus>
Any idea what may be wrong?

Posted: Fri Nov 30, 2007 6:57 pm
by Acki
I'm not sure, because I don't use the Irrlicht XML reader, but don't you need the file system ???

Code: Select all

IrrXMLReader* XmlReaderMenus = device->getFileSystem()->createIrrXMLReader("menus.xml");

Posted: Fri Nov 30, 2007 7:25 pm
by ultran00b
No Acki, Ambiera has a code example that shows how to do this, and you don't need the filesystem.

Posted: Fri Nov 30, 2007 10:23 pm
by hybrid
But you need Irrlicht 1.4 for a proper dll export of the symbols under Windows. however, this would prevent linking the app already. And I guess it fails during runtime!? Then it's a job for a debugger...