code: private void processTag(boolean start) {
      	if (start) {
      		nested++;
      		doc.startElement(tag,attributes);
      	}
      	else {
              nested--;
              doc.endElement(tag);
      	}
      }
docs: processes the tag.
  @param start	if true we are dealing with a tag that has just been opened; if false we are closing a tag.