import org.w3c.dom.Document;
import org.w3c.dom.Element;
publicclass Utils {
/**
* Add Text object to an Element.
* @param element the containing element
* @param text the text to add
*/
publicstaticvoid addText(Element element, String text) {
element.appendChild(element.getOwnerDocument().createTextNode(text));
}
}