From 36a1402be747136711edc19f7bce45f36a625eb4 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Thu, 6 Mar 2014 10:09:32 +0000 Subject: added proper namespaces and ignored end elements in xml parsing git-svn-id: file:///var/local/svn/basicwriter@27 daaaf23c-2e50-4459-9457-1e69db5a47bf --- src/xml/XmlReader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/xml') diff --git a/src/xml/XmlReader.cpp b/src/xml/XmlReader.cpp index fd03ffb..c7de564 100644 --- a/src/xml/XmlReader.cpp +++ b/src/xml/XmlReader.cpp @@ -55,7 +55,8 @@ bool XmlReader::expectOneOf(std::vector &handlers) << xml.name().toString().toStdString() << "\" instead!" << std::endl; return false; - case QXmlStreamReader::EndElement: + /* This is Benjamins noob way of handling things: We just ignore them. + case QXmlStreamReader::EndElement: // Expected tag was not found, instead we found a closing tag! // TODO: Use better logging mechanism! std::cout << "Expected one of the following tags: (" @@ -63,7 +64,7 @@ bool XmlReader::expectOneOf(std::vector &handlers) << "); but found end of element \"" << xml.name().toString().toStdString() << "\" instead!" << std::endl; - return false; + return false;*/ default: continue; } -- cgit v1.2.3