code: public final String[] getElementStack() {
          if (_elementStackSize == 0) {
              return null;
          } else {
              String[] newStack = new String[_elementStackSize];
              System.arraycopy(_elementStack, 0, newStack, 0, _elementStackSize);
              return newStack;
          }
      }
docs: Returns a copy of the element stack. The returned array will be a new
  array. The size of the array will be equal to the element stack size
  (see {@link #getElementStackSize()}.
  
  @return a newly constructed array that contains all the element types
  currently on the element stack, or <code>null</code> if there are no
  elements on the stack.
  @since XMLenc 0.22