I'm creating hyperlink for the TOC page. For selecting the paragraph, i used grep method, and iterate through found list, and trying to create hyperlink for the app.selection.paragraphs.texts, but i'm getting an error "element partially selected". i could see that, open element selected.. and end element not selected.. paragraphs are separated by line-break, meant all the entries of TOC captured within single element. (see the attachment). i'm struggling to un-select the XML elments from the selected text.