From a69e97943539a8abc4d2762638c169dc19c88516 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 7 Jun 2015 21:22:45 +0200 Subject: initial import --- xmlutils.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 xmlutils.cc (limited to 'xmlutils.cc') diff --git a/xmlutils.cc b/xmlutils.cc new file mode 100644 index 0000000..350949c --- /dev/null +++ b/xmlutils.cc @@ -0,0 +1,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; +} -- cgit v1.2.3