title: How do I access the XML element text using xml2js other than using underscore key?
body: <p>I have a piece of XML looking like this:</p>
  
  <pre><code>&lt;errorMessage&gt;
      &lt;payload encoding="plain"&gt;The error message&lt;/payload&gt;
  &lt;/errorMessage&gt;
  </code></pre>
  
  <p>and I use xml2js parser:</p>
  
  <pre><code>var parser = new xml2js.Parser({
      explicitCharKey: false,
      trim: true,
      explicitRoot: true,
      mergeAttrs: true
  });
  parser.parseString(myString, function(err, result) {
      var payload = result.errorMessage.payload;
      // how do I access the error message text?
      var errorMessage = payload[0]['_'];
  });
  </code></pre>
  
  <p>I need to access <code>The error message</code> string inside <code>payload</code> element. If I use <code>_</code> key on the node containing the <code>&lt;payload&gt;</code> then the text is properly retrieved but using an underscore magic key for this looks suspicious.</p>
  
  <p>Is this the recommended way? Are there any cleaner ways?</p>