code: @Override
      public void outputNamespaceDeclarations(Writer w) throws IOException
      {
          String[] ns = mNamespaces;
          for (int i = mFirstLocalNs, len = mNsLength; i < len; i += 2) {
              w.write(' ');
              w.write(XMLConstants.XMLNS_ATTRIBUTE);
              String prefix = ns[i];
              if (prefix != null && prefix.length() > 0) {
                  w.write(':');
                  w.write(prefix);
              }
              w.write("=\"");
              w.write(ns[i+1]);
              w.write('"');
          }
      }
docs: Method called by {@link com.ctc.wstx.evt.CompactStartElement}
  to output all 'local' namespace declarations active in current
  namespace scope, if any. Local means that declaration was done in
  scope of current element, not in a parent element.