xmlreader
@Armen: Crashes? I got it working in my project, albeit there are a few things that aren't working properly, I've never crashed it.
Last edited by Tyn on Wed Jun 02, 2004 11:53 am, edited 3 times in total.
-
lobbin
at the end of the reading loop it segfaults, maybe its a linux-specific problem?
Code: Select all
io::IXMLReader* xml = device->getFileSystem()->createXMLReader("./yards/leveldata/yardx.xml");
core::stringc bspfile;
while(xml && xml->read())
{
switch(xml->getNodeType())
{
case io::EXN_ELEMENT:
{
if (core::stringw("bsp0") == xml->getNodeName())
bspfile = xml->getAttributeValue(L"filename");
}
break;
}}
xml->drop();