'How can I Map from XML HREF+Text to Word Document Hyperlink?

I Have a simple XML file e.g.:

 <root>
    <some_link_href>http://www.microsoft.com/</some_link_href>
    <some_link_text>goto microsoft site</some_link_text>
 </root>

I have setup XmlMapping, but I can't seem to get a Hyperlink.
I tried using richTextControl and and providing RTF text
(e.g. '{\rtf1\pc some \b BOLD \b0 text}') but it just shown the raw RTF.

Note: even though I'd like to have a Text with HREF, I can settle for clickable URI

Is there any other control? other good methods to use?

also posted @ https://docs.microsoft.com/en-us/answers/questions/720964/place-link-on-winword-from-xmlmapping.html



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source