code: void addOrReplaceDecls(XMLNSDecl newDecl)
    {
        int n = m_prefixTable.size();
  
          for (int i = n - 1; i >= 0; i--)
          {
            XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
  
            if (decl.getPrefix().equals(newDecl.getPrefix()))
            {
              return;
            }
          }
        m_prefixTable.add(newDecl);    
      
    }
docs: Add or replace this namespace declaration in list
  of namespaces in scope for this element.
  
  @param newDecl namespace declaration to add to list