code: public Object nextContent() throws JSONException {
          char         c;
          StringBuilder sb;
          do {
              c = next();
          } while (Character.isWhitespace(c));
          if (c == 0) {
              return null;
          }
          if (c == '<') {
              return XML.LT;
          }
          sb = new StringBuilder();
          for (;;) {
              if (c == 0) {
                  return sb.toString().trim();
              }
              if (c == '<') {
                  back();
                  return sb.toString().trim();
              }
              if (c == '&') {
                  sb.append(nextEntity(c));
              } else {
                  sb.append(c);
              }
              c = next();
          }
      }
docs: Get the next XML outer token, trimming whitespace. There are two kinds
  of tokens: the '<' character which begins a markup tag, and the content
  text between markup tags.
  
  @return  A string, or a '<' Character, or null if there is no more
  source text.
  @throws JSONException