diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2014-03-06 10:09:32 +0000 |
---|---|---|
committer | benjamin <benjamin@daaaf23c-2e50-4459-9457-1e69db5a47bf> | 2014-03-06 10:09:32 +0000 |
commit | 36a1402be747136711edc19f7bce45f36a625eb4 (patch) | |
tree | f9bcc7095561929dd527c02f4cbb3b68e7901385 /src/xml/XmlReader.cpp | |
parent | d99095f4a181357bf0c6d10846351eb0b58b1ccf (diff) |
added proper namespaces and ignored end elements in xml parsing
git-svn-id: file:///var/local/svn/basicwriter@27 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/xml/XmlReader.cpp')
-rw-r--r-- | src/xml/XmlReader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<XmlElementHandler> &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<XmlElementHandler> &handlers) << "); but found end of element \"" << xml.name().toString().toStdString() << "\" instead!" << std::endl; - return false; + return false;*/ default: continue; } |