aboutsummaryrefslogtreecommitdiff
path: root/xmlutils.cc
blob: 350949c3522c582ef30db6038c06c38f38c31d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "xmlutils.h"

bool advanceToFirstChildElement(QXmlStreamReader &r, const char *tag)
{
	while (r.readNextStartElement()) {
		if (r.name() == tag) {
			return true;
		} else {
			r.skipCurrentElement();
		}
	}
	return false;
}