XML: can't use
-
- Posts: 10
- Joined: Mon Mar 08, 2004 9:01 pm
- Location: Omikron
XML: can't use
I can't use XML files with the new Irrlicht XML Parser. The one in the example "meshviewer" works but if I change anything and save the xml file the program crashes and doesn't load the xml. I tried using 3 different XML editors, even an old Microsoft XML notepad that saved the file to ASCII format. Is this a bug?
-
- Posts: 10
- Joined: Mon Mar 08, 2004 9:01 pm
- Location: Omikron
I'm having the same problem. I started out w/ ANSI (default) in NotePad, and I end up with multiples of that which resembles the following in my debug:
And, when I try saving it in Unicode (which I assume is UTF-16 LE) and Unicode Big Endian, I end up with the same result.
This is my code
For the most part, it seems good, but I know I'm overlooking something. You can call me Ben Stein, because I asking, "Anyone? Anyone?"
Code: Select all
Could not load texture: C:\progs\espionage\media\Textures\04_jupiter.bmpýýýýðºðºðº««««««««
This is my code
Code: Select all
c8* YUWorld::GetCData(io::IXMLReader* xml,wchar_t* attrib)
{
wchar_t* wtmp = (wchar_t*)xml->getAttributeValue(attrib);
#ifdef _NDEBUG
io::IXMLWriter* XML = IDevice->getFileSystem()->createXMLWriter("c:\\progs\\espionage\\debug.txt");
XML->writeText(wtmp);
XML->drop();
#endif
c8* ctmp = (c8*)malloc(wcslen(wtmp));
wcstombs(ctmp, wtmp, wcslen(wtmp));
return ctmp;
}
"Object-oriented programming is an exceptionally bad idea which could only have originated in California."
- E.W. Dijkstra
- E.W. Dijkstra