prefix = "xml";
  protected void addNSDeclsToAttrs()  {    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();    while (prefixes.hasMoreElements())     {      String prefix = (String)prefixes.nextElement();      boolean isDefault = (prefix.length() == 0);      String name;      if(isDefault)      {        prefix = "xml";        name = "xmlns";      }      else        name="xmlns:"+prefix;            // System.out.println("Adding xmlns: "+name);              // System.out.println("calling addAttribute(null, null, "+name+", 'CDATA', "+      //                   m_nsSupport.getURI(prefix)+");");      m_pendingAttributes.addAttribute("http://www.w3.org/2000/xmlns/",                                        prefix,                                        name, "CDATA", m_nsSupport.getURI(prefix));    }    m_nsDeclsHaveBeenAdded = true;  }