while (lTokenizer.hasMoreTokens())
{
Element element = lDoc.createElement("token");
element.appendChild(lDoc.createTextNode(lTokenizer.nextToken()));
resultSet.addNode(element);
}
}
// If the delimiter is an empty string, create one token Element for
// every single character.
else