return document.getText(elt.getStartOffset(), elt.getEndOffset());
return document.getText(elt.getStartOffset(), elt.getEndOffset() - elt.getStartOffset());
  protected String getText(Element elt) throws BadLocationException  {    if (! elt.isLeaf())      throw new BadLocationException("Element is not a leaf",				     elt.getStartOffset());    return document.getText(elt.getStartOffset(), elt.getEndOffset());  }