I used DOM to parse an XML file
Code:
if (!node.isNull()) { node = findTag(node, "Communication"); //do something with node } { if (node.toElement().tagName() == tag) { return node; }else { if (hasChild(node)) { node = node.firstChild(); findTag(node, tag); }else { while (!hasSibling(node)) { if (hasParent(node)) node = node.parentNode(); else } node = node.nextSibling(); findTag(node, tag); } } } { if( !node.parentNode().isNull()) return true; else return false; } { if( !node.nextSibling().isNull()) return true; else return false; } { return node.hasChildNodes(); }
There is always an error in "qatomic_windows.h"
Code:
inline int q_atomic_decrement(volatile int *ptr) { return _InterlockedDecrement(reinterpret_cast<volatile long *>(ptr)); }
Is there anything wrong in my code ?

