I have little problem with xmlreader - it reads only the first character from every line :/
Here is my xml file :
Code: Select all
<?xml version="1.0"?>
<config>
<scr_res_x>1024</res_x>
<scr_res_y>768</res_y>
<scr_fs>0</scr_fs>
</config>
Code: Select all
while(xml_file && xml_file->read())
{
switch(xml_file->getNodeType())
{
case io::EXN_TEXT:
{
temp = xml_file->getNodeData();
printf("%s\n",temp.c_str());
break;
}
}
}
delete xml_file;
Code: Select all
1
7
0
So what is wrong? :/