title: c++ xml parser function not working
body: <p>I am using xerces c++ to manipulate an xml file? but getNodeValue() and setNodeValue() are not working but getNodeName() is working. Do anyone has any suggestions?</p>
  
  <pre><code> if( currentNode-&gt;getNodeType() &amp;&amp;  currentNode-&gt;getNodeType() == DOMNode::ELEMENT_NODE ) 
           {
          // Found node which is an Element. Re-cast node as element
              DOMElement* currentElement= dynamic_cast&lt; xercesc::DOMElement* &gt;( currentNode );
              if( XMLString::equals(currentElement-&gt;getTagName(), TAG_ApplicationSettings))
              {
                 // Already tested node as type element and of name "ApplicationSettings".
                 // Read attributes of element "ApplicationSettings".
                 const XMLCh* xmlch_OptionA = currentElement-&gt;getAttribute(ATTR_OptionA);
                 m_OptionA = XMLString::transcode(xmlch_OptionA);
                     XMLCh* t,*s;
          //s= XMLString::transcode("manish");
          //currentNode-&gt;setElementText(s);
                    t=(XMLCh*)currentNode-&gt;getNodeName();
                 s=(XMLCh*)currentNode-&gt;getNodeValue();
  </code></pre>
  
  <p>cout&lt;getNodeValue()) &lt;&lt; "\n";</p>