code: public static String tokenTypeDesc(int type)
      {
          switch (type) {
          case START_ELEMENT:
              return "START_ELEMENT";
          case END_ELEMENT:
              return "END_ELEMENT";
          case START_DOCUMENT:
              return "START_DOCUMENT";
          case END_DOCUMENT:
              return "END_DOCUMENT";
  
          case CHARACTERS:
              return "CHARACTERS";
          case CDATA:
              return "CDATA";
          case SPACE:
              return "SPACE";
  
          case COMMENT:
              return "COMMENT";
          case PROCESSING_INSTRUCTION:
              return "PROCESSING_INSTRUCTION";
          case DTD:
              return "DTD";
          case ENTITY_REFERENCE:
              return "ENTITY_REFERENCE";
          }
          return "["+type+"]";
      }
docs: /*
  //////////////////////////////////////////////////
  Utility methods
  //////////////////////////////////////////////////