code: void appendEndElement()
    {
      // pop up the stacks
  
      if (previousSiblingWasParent)
        nodes.writeEntry(previousSibling, 2, NULL);
  
      // Pop parentage
      previousSibling = currentParent;
      nodes.readSlot(currentParent, gotslot);
      currentParent = gotslot[1] & 0xFFFF;
  
      // The element just being finished will be
      // the previous sibling for the next operation
      previousSiblingWasParent = true;
  
      // Pop a level of namespace table
      // namespaceTable.removeLastElem();
    }
docs: Terminate the element currently acting as an insertion point. Subsequent
  insertions will occur as the last child of this element's parent.