title: How to determine the namespace of a given attribute inside NodeChild
body: <p>I'm trying to parse some Android XML using <code>XmlSlurper</code>. For a given child node, I want to detect whether or not an attribute with a particular namespace has been specified.</p>
  
  <p>For example, in the following XML I would like to know whether the <code>EditText</code> node has had any attributes from the 'b' namespace declared:</p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:b="http://x.y.z.com"&gt;
  
      &lt;EditText
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          b:enabled="true" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I start by calling:</p>
  
  <pre><code> def rootNode = new XmlSlurper().parseText(text)
  </code></pre>
  
  <p>to get a handle on the root <code>GPathResult</code>. As I iterate through the children, I am given an instance of <code>groovy.util.slurpersupport.NodeChild</code>. On this class I can inspect the attributes by calling <code>attributes()</code> and in the case of <code>EditText</code> above, this will return the following map: <code>[layout_width: "fill_parent", layout_height: "wrap_content", enabled: "true"]</code>. </p>
  
  <p>This is all well and good. However, there doesn't seem to be a way to query the namespace of a given attribute. Am I missing something here?</p>