title: How to get (and output) namespace prefix declarations using staxmate
body: <p>Xml documents may show namespace prefix declarations in their root element. As I am new to StaxMate I managed to process xml input events for elements and element attributes. However, I never got a Namespace event.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;myRoot xmlns="http://myurl.com/myProject"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:mya="http://myurl.com/myAttributes"
    xsi:schemaLocation="http://myurl.com/myProject ./../../main/xsd/mySchema.xsd "&gt;
  
  
    &lt;myElement mya:myAttribute="attribute content"&gt;
      &lt;mySubElement&gt;subelements content&lt;/original&gt;
    &lt;/myElement&gt;
  &lt;/myRoot&gt;
  </code></pre>
  
  <p>When processing the element <em>myRoot</em> how to get the xmlns namespaces? E.g. in order to output some of them to the root element of the SMOutputDocument?</p>