Hi,
I’am having trouble reading from an Xml file.
QFile file("forecast.xml");
file.open(QIODevice::ReadOnly);
QXmlStreamReader xml(&file);
while (!xml.atEnd())
{
xml.readNext();
name = xml.name().toString();
}
if (xml.hasError())
{
name = xml.errorString();
}
file.close();
Error String is premature end of document.
I got the Feeling that the file isnt read.
Thanks,
Regads,
Maddin
↧