code: protected String nodeType(short type) {
          switch(type) {
          case Node.ELEMENT_NODE:                return "Element";
          case Node.DOCUMENT_TYPE_NODE:          return "Document Type";
          case Node.ENTITY_NODE:                 return "Entity";
          case Node.ENTITY_REFERENCE_NODE:       return "Entity Reference";
          case Node.NOTATION_NODE:               return "Notation";
          case Node.TEXT_NODE:                   return "Text";
          case Node.COMMENT_NODE:                return "Comment";
          case Node.CDATA_SECTION_NODE:          return "CDATA Section";
          case Node.ATTRIBUTE_NODE:              return "Attribute";
          case Node.PROCESSING_INSTRUCTION_NODE: return "Processing Instruction";
          default: break; 
          }
          return Short.toString(type);
      }
docs: Provides a display text for the constant values of the {@link Node} class that represent node types.
  
  @param type the node type
  @return the display text
  
  @since XMLUnit 2.4.0