title: How to pass Xml in XercesDOMParser?
body: <p>I am moving some DOMNode from one document to another; here the code snap </p>
  
  <pre><code>        XercesDOMParser *parser = new XercesDOMParser;
          parser-&gt;setValidationScheme(XercesDOMParser::Val_Auto);
          parser-&gt;setDoNamespaces(false);
          parser-&gt;setDoSchema(false);
          parser-&gt;setValidationSchemaFullChecking(false);
          parser-&gt;setCreateEntityReferenceNodes(false);
  
          // getDOMNodeForXMLString will pares the string and return the root DOMNode
          DOMNode* vendorExtnDomNode =  getDOMNodeForXMLString(*veField,parser);
  
         DOMNodeList* childList = vendorExtnDomNode-&gt;getChildNodes();
          if(childList)
          {
              DOMNode* childNode = NULL;
              for(childNode = vendorExtnDomNode-&gt;getFirstChild();childNode != NULL;childNode = childNode-&gt;getNextSibling())
              {
                  DOMElement* newChild = (DOMElement*) Doc-&gt;importNode(childNode,true);
                  veDomNode-&gt;appendChild(newChild);
              }
          }
          parser-&gt;resetDocumentPool();
          delete parser
  </code></pre>
  
  <p>if the xml string is something like below then it append to the Doc</p>
  
  <pre><code>&lt; my:root&gt;
          &lt; my:values&gt;
                          &lt; my:value1&gt;10&lt; /my:value1&gt;
          &lt; /my:values&gt;
  &lt; /my:root&gt;
  </code></pre>
  
  <p>But if the string is something like this</p>
  
  <pre><code>&lt; my:root&gt;
              &lt; my:values&gt;
                              &lt; my:value1&gt;10&lt; /my:value1&gt;
                              &lt; my:enum&gt;
                                              &lt; my:value2&gt;10&lt; /my:value1&gt;     
                              &lt; /my:enum&gt;
              &lt; /my:values&gt;
  &lt; /my:root
  </code></pre>
  
  <p>Then I only able to see the first level hierarchy string as below on xml dump why reset are missing</p>
  
  <pre><code>&lt; my:root&gt;
              &lt; my:values&gt;
                              &lt; my:value1&gt;10&lt; /my:value1&gt;
              &lt; /my:values&gt;
  &lt; /my:root&gt;
  </code></pre>
  
  <p>NOTE: please ignore white spaces in the tags</p>