-void RemoteList::parse(const QString &xmlFile)
-{
- QFile file(xmlFile);
- QDomDocument doc;
-
- if (!file.open(QIODevice::ReadOnly))
- {
- valid = false;
- return;
- }
-
- if (!doc.setContent(&file))
- {
- file.close();
- valid = false;
- return;
- }
- file.close();
-
- parse(doc);
-}
-