We are developing a document template builder that uses XML nodes. A node contains two tags: start and end. Currently, each tag is a separate Field and, thanks to the Selection module, we have managed to highlight the selected tag.
However, we would like to highlight both XML tags (separate Fields) that make up the XML node when the user selects any of the XML node's tags. Unfortunately, we are having trouble retrieving the other tag (remember that it is a Field), as we cannot loop or relate Fields in any way.
In summary, is it possible to loop, get or relate non selected Fields in a DocumentEditor? If not, is it possible to achieve the
functionality in any way?