Weird xml problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Cleves
Posts: 224
Joined: Mon Sep 08, 2003 6:40 pm

Weird xml problem

Post 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?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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");
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
ultran00b
Posts: 35
Joined: Tue Oct 30, 2007 3:30 pm

Post by ultran00b »

No Acki, Ambiera has a code example that shows how to do this, and you don't need the filesystem.
Use the debugger, young Skywalker...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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...
Post Reply