void addXMLElementAfterTokenIndex(int lastTokenIndex,XMLElement element,boolean addAfterNewLine) throws Exception {
  addXMLElementAfterTokenIndex(lastTokenIndex,element,addAfterNewLine,true);
}

void addXMLElementAfterTokenIndex ( int lastTokenIndex , XMLElement element , boolean addAfterNewLine ) throws Exception { addXMLElementAfterTokenIndex ( lastTokenIndex , element , addAfterNewLine , true ) ; }
adds the given xmlelement after the token whoes index matches the given lasttokenindex value . if the flag addafternewline is true , a new line is added before the addition of the new element to this document .
