In writing an HTML-editor, I'd like to wrap a selection based on indexes in the HTML-string.
Starting with *John <i><b>Q.</b> Smith III</i>* and given numerical indexes [5, 24] (shown by brackets below) *John [<i><b>Q.</b> Smith] III</i>* The output will be *John **<span>**<i><b>Q.</b> Smith**</i>**</span>**<i>** III</i>* Note that the end of this span falls between existing* <i>** *tags, so if I code it myself I have to maintain a stack of nested tags and trace the indexes in the original text. Is there a straightforward way to do this directly in Xerces? Joshua