title: tinyxml2 Equivalent of TiXmlNode Enumeration?
body: <p>What is the tinyxml2 (v2) replacement for v1's TiXmlNode enumeration?<br>
  TinyXML v1 can switch on node type, but how to do the same with TinyXML v2's XMLNode.</p>
  
  <pre><code>switch (node-&gt;Type()) // v1 node type selector
  {
      case TiXmlNode::DOCUMENT:
          wcout &lt;&lt; L"Hello Document";
      break;
  </code></pre>