title: What is the way to parse XML in a Worklight Adapter?
body: <p>In a notification Worklight adapter - I invoke the adapter passing a very long XML string from the backend service.</p>
  
  <p>The backend service cannot be altered or changed.</p>
  
  <p>I want to be able to turn the javascript String object into something I can parse and use useful functions on such as :</p>
  
  <pre><code>var custNum = doc.getElementsByTagName("data:custNum")[0];
  </code></pre>
  
  <p>However all attempts so far at creating the 'doc' variable have failed. Standard DOMParser and window methods are undefined and out of scope in adapters. I would rather not resort to lengthy string splitting to find my nodes!</p>
  
  <p>Many thanks</p>