fragment.appendChild(startText);
}
QDomElement hilight = doc.createElement("en-hilight");
hilight.appendChild(doc.createTextNode(valueMiddle));
fragment.appendChild(hilight);
}
if (matchFound) {
if (previousPosition != value.length()) {
QDomText endText = doc.createTextNode(valueEnd);
fragment.appendChild(endText);