code: public String getLocationAsString() {
  
          if (null != locator) {
              StringBuilder sbuffer  = new StringBuilder();
              String       systemID = locator.getSystemId();
              int          line     = locator.getLineNumber();
              int          column   = locator.getColumnNumber();
  
              if (null != systemID) {
                  sbuffer.append("; SystemID: ");
                  sbuffer.append(systemID);
              }
  
              if (0 != line) {
                  sbuffer.append("; Line#: ");
                  sbuffer.append(line);
              }
  
              if (0 != column) {
                  sbuffer.append("; Column#: ");
                  sbuffer.append(column);
              }
  
              return sbuffer.toString();
          } else {
              return null;
          }
      }
docs: Get the location information as a string.
  
  @return A string with location info, or null
  if there is no location information.