XmlCursor cur = cursor.newCursor();
// back up to previous start or end tag
while (!isStartOrEnd(cur.toPrevToken())) { System.out.println("Backing up: at " + cur.currentTokenType()); }
// then forward to first start or comment (may end up where we started)
while (!isStartOrComment(cur.toNextToken())) { System.out.println("Advancing: at " + cur.currentTokenType()); }
// then grab the "start" javelin annotation, and grab the start token and the first char
// _firstToken = ((JavelinAnnotation)cur.getAnnotation(JavelinAnnotation.class)).getStartToken();
// now peek at the end tag (it may be unplaced for the <a/> case, so use the start tag if needed
cur.toCursor(cursor);