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; }