code: private void initNamespaces()
      {
          // The initial prefix mappings will never be deleted because they are at element depth -1
          // (a kludge)
  
          // Define the default namespace (initially maps to "" uri)
          Stack stack;
          MappingRecord nn;
          nn = new MappingRecord(EMPTYSTRING, EMPTYSTRING, -1);
          stack = createPrefixStack(EMPTYSTRING);
          stack.push(nn);
  
          // define "xml" namespace
          nn = new MappingRecord(XML_PREFIX, "http://www.w3.org/XML/1998/namespace", -1);
          stack = createPrefixStack(XML_PREFIX);
          stack.push(nn);
      }
docs: This method initializes the namespace object with appropriate stacks
  and predefines a few prefix/uri pairs which always exist.