code: protected String validateDefaultName(InputProblemReporter rep, boolean normalize)
          throws XMLStreamException
      {
          String origDefValue = mDefValue.getValue();
          String defValue = origDefValue.trim();
  
          if (defValue.length() == 0) {
              reportValidationProblem(rep, "Invalid default value '"+defValue
                               +"'; empty String is not a valid name");
          }
  
          // Ok, needs to be a valid XML name:
          int illegalIx = WstxInputData.findIllegalNameChar(defValue, mCfgNsAware, mCfgXml11);
          if (illegalIx >= 0) {
              if (illegalIx == 0) {
                  reportValidationProblem(rep, "Invalid default value '"+defValue+"'; character "
                                          +WstxInputData.getCharDesc(defValue.charAt(0))
                                          +") not valid first character of a name");
              } else {
                  reportValidationProblem(rep, "Invalid default value '"+defValue+"'; character #"+illegalIx+" ("
                                          +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                                          +") not valid name character");
              }
          }
  
          // Ok, cool it's ok...
          return normalize ? defValue : origDefValue;
      }
docs: /*
  /////////////////////////////////////////////////
  Package methods, validation helper methods
  /////////////////////////////////////////////////